/* =======================================================
   Auth Pages
======================================================= */

.auth-page{
    position:relative;
    min-height:100vh;
    overflow:hidden;
    display:grid;
    place-items:center;
    padding:86px 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(37,99,235,.28), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(124,58,237,.25), transparent 32%),
        linear-gradient(135deg,#020617,#0f172a 52%,#111827);
}

.auth-page::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.035) 1px, transparent 1px);
    background-size:44px 44px;
    mask-image:linear-gradient(to bottom,rgba(0,0,0,.75),transparent);
    pointer-events:none;
}

.auth-page::after{
    content:"";
    position:absolute;
    width:520px;
    height:520px;
    border-radius:50%;
    right:-180px;
    top:-180px;
    background:radial-gradient(circle,rgba(59,130,246,.28),transparent 68%);
    filter:blur(12px);
    pointer-events:none;
}

.auth-shell{
    position:relative;
    z-index:1;
    width:min(100% - 48px,1180px);
    display:grid;
    grid-template-columns:1fr 520px;
    gap:42px;
    align-items:center;
}

.auth-brand-panel{
    color:white;
}

.auth-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.16);
    color:#bfdbfe;
    padding:9px 15px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.1em;
    margin-bottom:22px;
}

.auth-kicker::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 0 6px rgba(34,197,94,.15);
}

.auth-brand-panel h1{
    max-width:680px;
    font-family:var(--font-heading);
    font-size:64px;
    line-height:1.02;
    letter-spacing:-.055em;
    margin:0 0 20px;
    color:#bfdbfe;

}

.auth-brand-panel p{
    max-width:620px;
    color:#dbeafe;
    font-size:18px;
    line-height:1.8;
    margin:0;
}

.auth-points{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:30px;
}

.auth-points span{
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.16);
    padding:10px 14px;
    border-radius:999px;
    color:#e0f2fe;
    font-size:14px;
    font-weight:800;
    backdrop-filter:blur(14px);
}

.auth-card{
    position:relative;
    overflow:hidden;
    background:rgba(255,255,255,.86);
    backdrop-filter:blur(28px);
    -webkit-backdrop-filter:blur(28px);
    border:1px solid rgba(255,255,255,.58);
    border-radius:36px;
    padding:44px;
    box-shadow:
        0 40px 100px rgba(0,0,0,.34),
        inset 0 1px rgba(255,255,255,.72);
}

.auth-card::before{
    content:"";
    position:absolute;
    width:260px;
    height:260px;
    right:-120px;
    top:-130px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(37,99,235,.22),transparent 70%);
    pointer-events:none;
}

.auth-card::after{
    content:"";
    position:absolute;
    width:210px;
    height:210px;
    left:-110px;
    bottom:-110px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(124,58,237,.18),transparent 70%);
    pointer-events:none;
}

.auth-card > *{
    position:relative;
    z-index:1;
}

.auth-card-header{
    text-align:center;
    margin-bottom:28px;
}

.auth-card-header span{
    display:inline-block;
    color:#2563eb;
    background:#eff6ff;
    border:1px solid #dbeafe;
    padding:7px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    margin-bottom:14px;
}

.auth-card-header h2{
    font-family:var(--font-heading);
    color:#0f172a;
    font-size:42px;
    line-height:1.08;
    letter-spacing:-.045em;
    margin:0 0 10px;
}

.auth-card-header p{
    color:#64748b;
    font-size:16px;
    line-height:1.7;
    margin:0;
}

.auth-form{
    display:grid;
    gap:16px;
}

.auth-form::before{
    content:"";
    width:100%;
    height:1px;
    background:linear-gradient(90deg,transparent,#e2e8f0,transparent);
    margin:4px 0 10px;
}

.form-grid.two{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.field-group label{
    display:block;
    color:#0f172a;
    font-weight:900;
    font-size:13px;
    margin-bottom:8px;
}

.field-group input,
.modern-input{
    width:100%;
    box-sizing:border-box;
    background:rgba(255,255,255,.74);
    border:1px solid rgba(148,163,184,.45);
    border-radius:17px;
    padding:15px 18px;
    font-size:15px;
    color:#0f172a;
    outline:none;
    transition:.22s ease;
}

.field-group input:hover,
.modern-input:hover{
    background:white;
    border-color:#94a3b8;
}

.field-group input:focus,
.modern-input:focus{
    background:white;
    border-color:#2563eb;
    box-shadow:
        0 0 0 5px rgba(37,99,235,.13),
        0 16px 34px rgba(37,99,235,.1);
}

.errorlist{
    list-style:none;
    margin:7px 0 0;
    padding:0;
    color:#dc2626;
    font-size:13px;
    font-weight:800;
}

.auth-alert{
    background:#fef3c7;
    color:#92400e;
    border:1px solid #fde68a;
    border-radius:16px;
    padding:13px 15px;
    margin-bottom:18px;
    font-weight:800;
}

.auth-switch{
    text-align:center;
    color:#64748b;
    margin:2px 0 0;
}

.auth-switch a{
    color:#2563eb;
    text-decoration:none;
    font-weight:900;
}

.logout-card{
    text-align:center;
}

.logout-icon{
    width:92px;
    height:92px;
    margin:0 auto 24px;
    border-radius:30px;
    display:grid;
    place-items:center;
    font-size:42px;
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    color:white;
    box-shadow:0 20px 50px rgba(37,99,235,.3);
}

.logout-message{
    color:#64748b;
    line-height:1.8;
    margin:22px 0 30px;
}

@media(max-width:950px){
    .auth-shell{
        grid-template-columns:1fr;
    }

    .auth-brand-panel{
        text-align:center;
    }

    .auth-brand-panel h1{
        font-size:46px;
        margin-inline:auto;
        color:#bfdbfe;

    }

    .auth-brand-panel p{
        margin-inline:auto;
    }

    .auth-points{
        justify-content:center;
    }

    .auth-card{
        max-width:560px;
        width:100%;
        margin:auto;
    }
}

@media(max-width:560px){
    .auth-page{
        padding:48px 0;
    }

    .auth-shell{
        width:min(100% - 28px,1180px);
    }

    .auth-brand-panel h1{
        font-size:36px;
        color:#bfdbfe;

    }

    .auth-brand-panel p{
        font-size:16px;
    }

    .auth-card{
        padding:26px;
        border-radius:26px;
    }

    .auth-card-header h2{
        font-size:32px;
    }

    .form-grid.two{
        grid-template-columns:1fr;
    }
}