@charset "utf-8";
*{
    box-sizing: border-box;
}
body{
    margin:0;
    font-family:'Kanit',sans-serif;
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#0f0f0f,#1a1a1a);
}
button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:30px;
    font-weight:bold;
    background:linear-gradient(135deg,#C8A23A,#E6C76A);
    cursor:pointer;
    transition:0.3s;
    margin-top:10px;
}

button:hover{
    transform:scale(1.05);
}
.register-link{
    margin-top:18px;
    font-size:14px;
    color:white;
}

.register-link a{
    color:#E6C76A;
    text-decoration:none;
    font-weight:500;
}

.register-link a:hover{
    text-decoration:underline;
}
.register-box{
    position: relative;
}
.input-group{
    margin-bottom: 28px;
}

.input-box{
    position:relative;
    margin-bottom:22px;
}

.input-box input{
    width:100%;
    padding:12px 45px;
    border-radius:12px;
    border:none;
    outline:none;
    background:#f1f1f1;
    transition:0.3s;
}

.input-box input:focus{
    box-shadow:0 0 0 3px rgba(200,162,58,0.6);
    background:white;
}
/* ไอคอนซ้าย */
.left-icon{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#C8A23A;
}

.right-icon{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:#777;
    transition:0.3s;
}

.right-icon:hover{
    color:#C8A23A;
}

/* ปิดไอคอนตาของ browser */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
}
.home-link{
    text-align:center;
    margin-top:15px;
}

.home-link a{
    color:#C8A23A;
    text-decoration:none;
    font-size:14px;
}

.back-home{
    position:absolute;
    top:20px;
    left:25px;
    color:#C8A23A;
    text-decoration:none;
    font-size:14px;
}

.back-home:hover{
    color:#E6C76A;
}
.login-box{
    width:380px;
    padding:40px;
    border-radius:20px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(15px);
    border:1px solid rgba(200,162,58,0.3);
    box-shadow:0 20px 60px rgba(0,0,0,0.6);
    text-align:center;
    color:white;
    position: relative;
}
/* ปิดปุ่มตาของ Edge */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* ปิดปุ่มตาของ Chromium/Edge */
input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    display:none !important;
}
/* ===== REGISTER ===== */

.register-box{
    width:400px;
    padding:40px;
    border-radius:25px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(20px);
    border:1px solid rgba(200,162,58,0.4);
    box-shadow:0 25px 60px rgba(0,0,0,0.6);
    color:white;
    position:relative;
}

.register-box h2{
    text-align:center;
    margin-bottom:25px;
}

.btn-register{
    width:100%;
    padding:13px;
    border:none;
    border-radius:30px;
    font-weight:600;
    cursor:pointer;
    background:linear-gradient(135deg,#C8A23A,#E6C76A);
    transition:0.3s;
}

.btn-register:hover{
    transform:scale(1.05);
    box-shadow:0 10px 25px rgba(200,162,58,0.5);
}

.login-link{
    text-align:center;
    margin-top:18px;
}

.login-link a{
    color:#E6C76A;
    text-decoration:none;
}

.login-link a:hover{
    text-decoration:underline;
}
/* กล่องกลาง */
.auth-box{
    width:400px;
    padding:45px;
    border-radius:25px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(20px);
    border:1px solid rgba(200,162,58,0.4);
    box-shadow:0 30px 80px rgba(0,0,0,0.8);
    color:white;
    position:relative;
    transition:0.4s;
}

.auth-box:hover{
    transform:translateY(-5px);
}

.auth-btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:30px;
    font-weight:600;
    cursor:pointer;
    background:linear-gradient(135deg,#C8A23A,#E6C76A);
    transition:0.3s;
    margin-top:10px;
}

.auth-btn:hover{
    transform:scale(1.05);
    box-shadow:0 15px 35px rgba(200,162,58,0.6);
}
body{
    background:linear-gradient(135deg,#0f0f0f,#1a1a1a);
    background-attachment:fixed;
}
body::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(circle, rgba(200,162,58,0.2), transparent);
    top:-150px;
    right:-150px;
    border-radius:50%;
}
.input-box select{
    width:100%;
    padding:14px 15px 14px 45px;  /* เว้นซ้ายให้ไอคอน */
    border-radius:30px;
    border:none;
    background:#1f1f1f;
    color:white;
    outline:none;
    appearance:none; /* เอาลูกศรเดิมออก */
}