/* ===================================
   LIAnalyzer Auth Pages
   login / register / admin login
=================================== */

/* Legacy auth card styles are preserved so pages such as admin login
   that may still use the old .auth-card structure are not broken. */
.auth-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
}

.auth-card{
    width:100%;
    max-width:430px;
    margin:auto;
}

.auth-card h1{
    text-align:center;
    margin-bottom:8px;
}

.auth-card .subtitle{
    text-align:center;
    margin-bottom:24px;
}

.auth-card form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.auth-card input{
    width:100%;
}

.auth-card button{
    width:100%;
}

.auth-footer{
    text-align:center;
    margin-top:18px;
}

.auth-link{
    color:#60a5fa;
    text-decoration:none;
}

.auth-link:hover{
    color:#93c5fd;
    text-decoration:none;
}

/* ===================================
   Modern Login / Register Layout
=================================== */

body.auth-body{
    min-height:100vh;
    overflow-x:hidden;
}

.auth-page.auth-page-modern{
    min-height:100vh;
    padding:34px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.auth-shell{
    width:min(1180px, 100%);
    min-height:690px;
    display:grid;
    grid-template-columns:minmax(0, 1.05fr) minmax(440px, .95fr);
    overflow:hidden;
    border-radius:30px;
    background:rgba(15,23,42,.80);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 30px 90px rgba(0,0,0,.38), 0 0 55px rgba(124,58,237,.20);
    backdrop-filter:blur(20px);
}

.auth-brand-panel{
    position:relative;
    padding:58px 56px 42px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    overflow:hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(124,58,237,.30), transparent 32%),
        radial-gradient(circle at 86% 78%, rgba(37,99,235,.28), transparent 34%),
        rgba(5,8,22,.72);
    border-right:1px solid rgba(255,255,255,.09);
}

.auth-brand-panel::before{
    content:"";
    position:absolute;
    width:320px;
    height:320px;
    top:-150px;
    right:-120px;
    border-radius:50%;
    border:1px solid rgba(167,139,250,.15);
    box-shadow:0 0 80px rgba(124,58,237,.12);
}

.auth-brand-panel::after{
    content:"";
    position:absolute;
    width:240px;
    height:240px;
    left:-110px;
    bottom:-120px;
    border-radius:50%;
    border:1px solid rgba(96,165,250,.12);
}

.auth-brand-content,
.auth-brand-footer{
    position:relative;
    z-index:1;
}

.auth-brand-name,
.auth-mobile-brand{
    display:inline-block;
    font-size:28px;
    font-weight:900;
    letter-spacing:-.6px;
    background:linear-gradient(90deg,#60a5fa,#a78bfa,#f472b6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.auth-brand-kicker{
    margin-top:12px;
    color:#a5b4fc;
    font-size:11px;
    font-weight:800;
    letter-spacing:2.2px;
}

.auth-brand-panel h2{
    margin:52px 0 20px;
    max-width:540px;
    color:#ffffff;
    font-size:48px;
    line-height:1.08;
    letter-spacing:-1.8px;
}

.auth-brand-description{
    max-width:520px;
    color:#cbd5e1;
    font-size:16px;
    line-height:1.75;
}

.auth-feature-list{
    display:grid;
    gap:12px;
    margin-top:38px;
    max-width:520px;
}

.auth-feature-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px 16px;
    border-radius:16px;
    background:rgba(15,23,42,.52);
    border:1px solid rgba(255,255,255,.08);
}

.auth-feature-icon{
    width:48px;
    min-width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:linear-gradient(135deg,rgba(37,99,235,.26),rgba(124,58,237,.30));
    border:1px solid rgba(96,165,250,.18);
    color:#dbeafe;
    font-size:11px;
    font-weight:900;
    letter-spacing:.5px;
}

.auth-feature-item strong{
    display:block;
    margin-bottom:4px;
    color:#f8fafc;
    font-size:14px;
}

.auth-feature-item small{
    display:block;
    color:#94a3b8;
    font-size:12px;
    line-height:1.45;
}

.auth-brand-footer{
    margin-top:34px;
    color:#64748b;
    font-size:12px;
}

.auth-form-panel{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:58px 52px;
    background:rgba(15,23,42,.68);
}

.auth-form-panel-register{
    padding-top:42px;
    padding-bottom:42px;
}

.auth-form-wrap{
    width:100%;
    max-width:420px;
}

.auth-mobile-brand{
    display:none;
    margin-bottom:28px;
}

.auth-form-heading{
    margin-bottom:28px;
}

.auth-eyebrow{
    display:block;
    margin-bottom:9px;
    color:#818cf8;
    font-size:11px;
    font-weight:900;
    letter-spacing:1.8px;
}

.auth-form-heading h1{
    margin:0 0 10px;
    text-align:left;
    font-size:32px;
    line-height:1.15;
    letter-spacing:-.8px;
    color:#ffffff;
    background:none;
    -webkit-text-fill-color:initial;
}

.auth-form-heading p{
    margin:0;
    color:#94a3b8;
    font-size:14px;
    line-height:1.6;
}

.auth-alert{
    margin:0 0 20px;
    padding:13px 15px;
    border-radius:13px;
    font-size:13px;
    line-height:1.5;
}

.auth-alert-error{
    color:#fecaca;
    background:rgba(239,68,68,.10);
    border:1px solid rgba(248,113,113,.24);
}

.auth-alert-success{
    color:#bbf7d0;
    background:rgba(34,197,94,.10);
    border:1px solid rgba(34,197,94,.24);
}

.auth-form{
    display:flex;
    flex-direction:column;
    gap:17px;
}

.auth-field{
    width:100%;
}

.auth-field label,
.auth-label-row label{
    display:block;
    margin:0 0 8px;
    color:#e2e8f0;
    font-size:13px;
    font-weight:700;
}

.auth-label-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.auth-forgot-link{
    margin-bottom:8px;
    font-size:12px;
    font-weight:700;
}

.auth-field input,
.auth-password-wrap input{
    width:100%;
    height:50px;
    margin:0;
    padding:0 15px;
    border-radius:13px;
    border:1px solid rgba(148,163,184,.24);
    background:rgba(30,41,59,.78);
    color:#ffffff;
    outline:none;
    font-size:14px;
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-field input::placeholder,
.auth-password-wrap input::placeholder{
    color:#64748b;
}

.auth-field input:focus,
.auth-password-wrap input:focus{
    border-color:#8b5cf6;
    background:rgba(30,41,59,.96);
    box-shadow:0 0 0 3px rgba(139,92,246,.18);
}

.auth-field-hint{
    display:block;
    margin-top:7px;
    color:#64748b;
    font-size:11px;
    line-height:1.4;
}

.auth-password-wrap{
    position:relative;
}

.auth-password-wrap input{
    padding-right:66px;
}

.auth-password-toggle{
    position:absolute;
    top:50%;
    right:9px;
    transform:translateY(-50%);
    width:auto !important;
    height:32px;
    margin:0 !important;
    padding:0 10px !important;
    border-radius:9px !important;
    border:1px solid rgba(148,163,184,.14) !important;
    background:rgba(15,23,42,.68) !important;
    color:#94a3b8 !important;
    box-shadow:none !important;
    font-size:11px !important;
    font-weight:800 !important;
}

.auth-password-toggle:hover{
    transform:translateY(-50%) !important;
    color:#ffffff !important;
    background:rgba(37,99,235,.18) !important;
    box-shadow:none !important;
}

.auth-submit-btn{
    width:100%;
    min-height:51px;
    margin:5px 0 0;
    padding:13px 16px;
    border:none;
    border-radius:14px;
    background:linear-gradient(90deg,#2563eb,#7c3aed);
    color:#ffffff;
    cursor:pointer;
    font-size:14px;
    font-weight:900;
    box-shadow:0 10px 28px rgba(37,99,235,.25);
    transition:transform .2s ease, box-shadow .2s ease;
}

.auth-submit-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 34px rgba(124,58,237,.34);
}

.auth-footer-modern{
    margin:24px 0 0;
    color:#94a3b8;
    font-size:13px;
}

.auth-footer-modern .auth-link{
    margin-left:4px;
    font-weight:800;
}

.auth-security-note{
    margin:22px 0 0;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.07);
    text-align:center;
    color:#64748b;
    font-size:11px;
    line-height:1.5;
}

@media(max-width:1000px){
    .auth-page.auth-page-modern{
        padding:24px;
    }

    .auth-shell{
        min-height:auto;
        grid-template-columns:minmax(0, .9fr) minmax(410px, 1.1fr);
    }

    .auth-brand-panel{
        padding:46px 38px 34px;
    }

    .auth-brand-panel h2{
        margin-top:44px;
        font-size:38px;
    }

    .auth-form-panel{
        padding:48px 38px;
    }
}

@media(max-width:800px){
    .auth-page{
        padding:90px 14px 35px;
        align-items:flex-start;
    }

    .auth-card{
        max-width:100%;
    }

    .auth-page.auth-page-modern{
        padding:18px 14px 28px;
        align-items:flex-start;
    }

    .auth-shell{
        width:100%;
        grid-template-columns:1fr;
        border-radius:24px;
    }

    .auth-brand-panel{
        display:none;
    }

    .auth-form-panel,
    .auth-form-panel-register{
        padding:34px 24px 30px;
    }

    .auth-form-wrap{
        max-width:480px;
    }

    .auth-mobile-brand{
        display:inline-block;
    }

    .auth-form-heading h1{
        font-size:28px;
    }
}

@media(max-width:480px){
    .auth-page.auth-page-modern{
        padding:0;
    }

    .auth-shell{
        min-height:100vh;
        border-radius:0;
        border-left:none;
        border-right:none;
    }

    .auth-form-panel,
    .auth-form-panel-register{
        align-items:flex-start;
        padding:30px 18px 28px;
    }

    .auth-mobile-brand{
        margin-bottom:34px;
        font-size:26px;
    }

    .auth-form-heading{
        margin-bottom:24px;
    }

    .auth-form-heading h1{
        font-size:27px;
    }

    .auth-label-row{
        align-items:flex-end;
    }
}
/* ===================================
   Google Authentication
=================================== */

.auth-divider{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:4px 0;
    color:#64748b;
    font-size:10px;
    font-weight:800;
    letter-spacing:1.2px;
}

.auth-divider::before,
.auth-divider::after{
    content:"";
    flex:1;
    height:1px;
    background:rgba(148,163,184,.16);
}

.auth-divider span{
    padding:0 14px;
}

.auth-google-btn{
    width:100%;
    min-height:51px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    padding:13px 16px;
    border-radius:14px;
    border:1px solid rgba(148,163,184,.24);
    background:rgba(30,41,59,.72);
    color:#f8fafc;
    text-decoration:none;
    font-size:14px;
    font-weight:800;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.auth-google-btn svg{
    width:19px;
    height:19px;
    flex:0 0 19px;
}

.auth-google-btn:hover{
    color:#ffffff;
    text-decoration:none;
    background:rgba(51,65,85,.88);
    border-color:rgba(96,165,250,.38);
    transform:translateY(-1px);
    box-shadow:0 10px 26px rgba(0,0,0,.18);
}

.auth-google-btn:active{
    transform:translateY(0);
}