/* ------------------- RESET ------------------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}

body{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#0f172a,#1d4ed8);

    overflow:hidden;

}

/* ---------- Animated Background ---------- */

body::before{

    content:"";

    position:absolute;

    width:600px;
    height:600px;

    background:rgba(255,255,255,.08);

    border-radius:50%;

    top:-250px;
    right:-180px;

}

body::after{

    content:"";

    position:absolute;

    width:450px;
    height:450px;

    background:rgba(255,255,255,.06);

    border-radius:50%;

    bottom:-180px;
    left:-150px;

}

/* ---------- Container ---------- */

.auth-container{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

    position:relative;

    z-index:2;

}

/* ---------- Card ---------- */

.auth-card{

    width:100%;

    max-width:430px;

    background:#fff;

    border-radius:22px;

    padding:40px;

    box-shadow:0 20px 50px rgba(0,0,0,.25);

    animation:fadeUp .5s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ---------- Heading ---------- */

.auth-card h2{

    color:#1e3a8a;

    text-align:center;

    font-size:34px;

    margin-bottom:8px;

}

.auth-card p{

    text-align:center;

    color:#64748b;

    margin-bottom:30px;

    font-size:15px;

}

/* ---------- Form ---------- */

.auth-card form{

    display:flex;

    flex-direction:column;

}

/* ---------- Input ---------- */

.form-group,
.input-group{

    display:flex;

    flex-direction:column;

    margin-bottom:18px;

}

.form-group label,
.input-group label{

    font-size:14px;

    color:#334155;

    margin-bottom:8px;

    font-weight:600;

}

.form-group input,
.input-group input,
.input-group select{

    width:100%;

    height:48px;

    padding:0 15px;

    border:1px solid #cbd5e1;

    border-radius:10px;

    font-size:15px;

    transition:.25s;

    outline:none;

}

.form-group input:focus,
.input-group input:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 4px rgba(37,99,235,.15);

}

/* ---------- Button ---------- */

button{

    width:100%;

    height:50px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:#fff;

    font-size:17px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

button:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

button:active{

    transform:scale(.98);

}

/* ---------- Links ---------- */

.forgot{

    text-align:right;

    margin-bottom:22px;

}

.forgot a{

    color:#2563eb;

    text-decoration:none;

    font-size:14px;

}

.forgot a:hover{

    text-decoration:underline;

}

.signup,
.bottom-text{

    margin-top:25px;

    text-align:center;

    color:#64748b;

    font-size:15px;

}

.signup a,
.bottom-text a{

    color:#2563eb;

    font-weight:600;

    text-decoration:none;

}

.signup a:hover,
.bottom-text a:hover{

    text-decoration:underline;

}

/* ---------- Password Eye ---------- */

.password-wrapper{

    position:relative;

}

.password-wrapper input{

    padding-right:45px;

}

.password-toggle{

    position:absolute;

    right:8px;

    top:50%;

    transform:translateY(-50%);

    cursor:pointer;

    color:#64748b;

    width:auto;

    height:auto;

    padding:6px 8px;

    border:none;

    border-radius:6px;

    background:transparent;

    font-size:13px;

    font-weight:600;

}

.password-toggle:hover,
.password-toggle:focus-visible{

    background:#e2e8f0;

    color:#1e3a8a;

    transform:translateY(-50%);

}

/* ---------- OTP ---------- */

.otp-container{

    display:flex;

    justify-content:space-between;

    gap:10px;

    margin-bottom:25px;

}

.otp-container input{

    width:55px;

    height:55px;

    text-align:center;

    font-size:22px;

    border-radius:10px;

    border:1px solid #cbd5e1;

}

.otp-container input:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 4px rgba(37,99,235,.15);

}

/* ---------- Success Message ---------- */

.success{

    color:#16a34a;

    text-align:center;

    margin-top:15px;

}

.error{

    color:#dc2626;

    text-align:center;

    margin-top:15px;

}

/* ---------- Responsive ---------- */

@media(max-width:480px){

.auth-card{

    padding:30px 22px;

}

.auth-card h2{

    font-size:28px;

}

}

.brand-kicker{
    color:#2563eb !important;
    font-size:11px !important;
    font-weight:700;
    letter-spacing:.14em;
    margin-bottom:12px !important;
}

.welcome-card h1{
    color:#1e3a8a;
    text-align:center;
    font-size:38px;
    margin-bottom:8px;
}

.welcome-actions{
    display:grid;
    gap:12px;
    margin-top:28px;
}

.auth-action{
    display:flex;
    min-height:50px;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
    transition:.25s;
}

.primary-action{ background:#2563eb; color:#fff; }
.primary-action:hover{ background:#1d4ed8; transform:translateY(-2px); }
.secondary-action{ border:1px solid #2563eb; color:#2563eb; }
.secondary-action:hover{ background:#eff6ff; }

/* ---------- Mobile/WebView Auth Layout ---------- */

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 16px;
    }

    .auth-card {
        padding: 30px 22px;
    }

    .auth-card h2,
    .welcome-card h1 {
        font-size: 28px;
    }
}