:root{
    --bg:#080b12;
    --panel:#111827;
    --panel2:#151d2c;
    --line:#273248;
    --text:#f7f9fd;
    --muted:#96a3b8;
    --red:#ff4058;
    --red2:#d82146;
    --blue:#6e7dff;
    --green:#38d996;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
    margin:0;
    font-family:"IBM Plex Sans Thai",sans-serif;
    color:var(--text);
}
.auth-bg{
    min-height:100vh;
    background:
        radial-gradient(circle at 50% -20%, rgba(110,125,255,.22), transparent 42%),
        radial-gradient(circle at 92% 80%, rgba(255,64,88,.09), transparent 28%),
        var(--bg);
    display:grid;
    place-items:center;
    padding:32px 16px;
}
.auth-shell{
    width:min(480px,100%);
}
.auth-brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 0 16px 6px;
}
.brand-icon{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:linear-gradient(135deg,var(--red),var(--red2));
    font-size:21px;
    font-weight:700;
    box-shadow:0 12px 35px rgba(255,64,88,.25);
}
.auth-brand strong{
    display:block;
    font-size:19px;
}
.auth-brand span{
    display:block;
    color:var(--muted);
    font-size:10px;
    letter-spacing:.15em;
}
.auth-card{
    border:1px solid var(--line);
    border-radius:24px;
    padding:30px;
    background:
        linear-gradient(180deg,rgba(255,255,255,.025),transparent 35%),
        var(--panel);
    box-shadow:0 30px 90px rgba(0,0,0,.36);
}
.auth-badge{
    display:inline-flex;
    padding:6px 10px;
    border-radius:999px;
    border:1px solid rgba(255,64,88,.25);
    background:rgba(255,64,88,.08);
    color:#ff7c8d;
    font-size:10px;
    letter-spacing:.14em;
    font-weight:700;
}
.auth-card h1{
    font-size:33px;
    line-height:1.15;
    margin:14px 0 7px;
}
.auth-description{
    color:var(--muted);
    margin:0 0 24px;
}
.auth-description strong{
    color:#d9e2f2;
}
.auth-card label{
    display:block;
    font-size:13px;
    font-weight:600;
    margin-bottom:8px;
}
.auth-card input[type="email"]{
    width:100%;
    height:50px;
    padding:0 15px;
    border-radius:14px;
    border:1px solid var(--line);
    outline:none;
    background:#0a0f18;
    color:#fff;
    margin-bottom:14px;
}
.auth-card input[type="email"]:focus,
.otp-digit:focus{
    border-color:rgba(255,64,88,.75);
    box-shadow:0 0 0 4px rgba(255,64,88,.09);
}
.auth-primary,.auth-secondary{
    width:100%;
    min-height:48px;
    border:0;
    border-radius:14px;
    cursor:pointer;
    color:#fff;
    font-weight:700;
}
.auth-primary{
    background:linear-gradient(135deg,var(--red),var(--red2));
    box-shadow:0 12px 30px rgba(255,64,88,.18);
}
.auth-secondary{
    background:#202a3b;
}
.security-note{
    margin-top:18px;
    padding:14px;
    border-radius:14px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.025);
}
.security-note strong,
.security-note span{
    display:block;
}
.security-note strong{font-size:13px}
.security-note span{font-size:12px;color:var(--muted);margin-top:3px}
.alert-error,.alert-success{
    padding:12px 14px;
    border-radius:13px;
    margin-bottom:17px;
    font-size:13px;
}
.alert-error{
    color:#ffd9dd;
    border:1px solid rgba(255,64,88,.35);
    background:rgba(255,64,88,.12);
}
.alert-success{
    color:#d8ffed;
    border:1px solid rgba(56,217,150,.3);
    background:rgba(56,217,150,.1);
}
.otp-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:5px;
    margin:10px 0 20px;
}
.otp-digit{
    width:52px;
    height:62px;
    text-align:center;
    border-radius:14px;
    border:1px solid var(--line);
    background:#090e17;
    color:#fff;
    outline:none;
    font-size:26px;
    font-weight:700;
    caret-color:var(--red);
}
.otp-separator{
    color:#56627a;
    font-weight:700;
}
.resend-block{
    margin-top:13px;
}
.resend-block small{
    display:block;
    text-align:center;
    color:var(--muted);
    margin-top:9px;
    font-size:11px;
}
@media(max-width:520px){
    .auth-card{padding:24px 18px}
    .otp-row{gap:3px}
    .otp-digit{width:43px;height:56px;border-radius:11px;font-size:22px}
    .otp-separator{font-size:11px}
}
