/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

body{
    background:linear-gradient(135deg,#f5f7fa,#e4ecf7);
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

/* =========================
   CARD
========================= */

.card{
    width:100%;
    max-width:500px;
    background:#fff;
    border-radius:22px;
    padding:40px;
    text-align:center;
    box-shadow:0 20px 50px rgba(0,0,0,0.08);
    animation:cardFade .5s ease;
}

@keyframes cardFade{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
   LOGO
========================= */

.logo{
    margin-bottom:20px;
}

.logo img{
    width:70px;
}

h2{
    font-size:36px;
    font-weight:700;
    color:#1f2937;
    margin-bottom:20px;
}

/* =========================
   LABELS
========================= */

label{
    display:block;
    text-align:left;
    margin-top:15px;
    margin-bottom:6px;
    font-weight:600;
    color:#374151;
}

/* =========================
   INPUTS
========================= */

input{
    width:100%;
    height:48px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:0 14px;
    font-size:15px;
    transition:.3s;
}

input:focus{
    outline:none;
    border-color:#1976d2;
    box-shadow:0 0 0 4px rgba(25,118,210,.15);
}

/* =========================
   CAPTCHA
========================= */

.captcha-box{
    height:55px;
    background:#f3f4f6;
    border:1px solid #d1d5db;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:700;
    letter-spacing:8px;
    margin-bottom:10px;
}

.captcha-correct{
    border:2px solid #22c55e !important;
    background:#f0fdf4 !important;
}

.captcha-wrong{
    border:2px solid #ef4444 !important;
    background:#fef2f2 !important;
}

/* =========================
   BUTTON
========================= */

button{
    width:100%;
    height:54px;
    margin-top:25px;
    border:none;
    border-radius:12px;
    background:#1976d2;
    color:#fff;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(25,118,210,.3);
}

button:active{
    transform:scale(.98);
}

/* =========================
   OTP SECTION
========================= */

.otp-box{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:20px;
    transition:.4s;
}

.otp-digit{
    width:55px;
    height:60px;
    border-radius:12px;
    border:2px solid #d1d5db;
    text-align:center;
    font-size:26px;
    font-weight:700;
    transition:.3s;
}

.otp-digit:focus{
    border-color:#1976d2;
}

.otp-digit.filled{
    border-color:#1976d2;
    box-shadow:0 0 15px rgba(25,118,210,.25);
    transform:translateY(-3px);
}

/* =========================
   VERIFYING ANIMATION
========================= */

.verification-loader{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    margin-top:25px;
}

.loader-ring{
    width:70px;
    height:70px;
    border:5px solid #dbeafe;
    border-top:5px solid #1976d2;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

/* =========================
   SUCCESS TICK
========================= */

.success-animation{
    margin-top:20px;
    animation:fadeIn .4s ease;
}

.checkmark{
    width:100px;
    height:100px;
}

checkmark-circle{
    stroke:#22c55e;
    stroke-width:2;
    stroke-dasharray:166;
    stroke-dashoffset:166;
    animation:stroke .6s forwards;
}

.checkmark-check{
    stroke:#22c55e;
    stroke-width:4;
    stroke-linecap:round;
    stroke-linejoin:round;
    stroke-dasharray:48;
    stroke-dashoffset:48;
    animation:stroke .4s .6s forwards;
}

@keyframes stroke{
    to{
        stroke-dashoffset:0;
    }
}

.success-animation p{
    margin-top:12px;
    font-size:18px;
    font-weight:600;
    color:#22c55e;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
   MESSAGE
========================= */

.message{
    margin-top:18px;
    font-size:14px;
}

.success{
    color:#16a34a;
}

.error{
    color:#dc2626;
}

.success-box{
    background:#ecfdf5;
    color:#15803d;
    border:1px solid #22c55e;
    padding:12px;
    border-radius:10px;
}

/* =========================
   UTILITIES
========================= */

.hidden{
    display:none !important;
}

/* =========================
   MOBILE
========================= */

@media(max-width:480px){

    .card{
        padding:25px;
    }

    h2{
        font-size:28px;
    }

    .otp-digit{
        width:45px;
        height:52px;
        font-size:22px;
    }

}