/* =========================================
   RESET / BASE
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    -webkit-text-size-adjust:100%;
    scroll-behavior:smooth;
}

body.auth-screen-body{
    min-height:100vh;
    color:#ffffff;
    font-family:'Segoe UI', Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0,247,255,0.10), transparent 24%),
        radial-gradient(circle at bottom right, rgba(124,58,237,0.14), transparent 28%),
        linear-gradient(180deg, #050b14 0%, #08111f 100%);
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

a{
    color:inherit;
}

button,
input,
textarea{
    font:inherit;
}

input,
textarea{
    font-size:16px !important;
}

/* =========================================
   TOPBAR
========================================= */

.auth-topbar{
    padding:14px 18px 0;
}

.auth-topbar-inner{
    max-width:1180px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
}

.auth-topbar-brand{
    display:inline-flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#fff;
    font-weight:800;
}

.auth-topbar-icon{
    width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:linear-gradient(135deg,#00f7ff,#7c3aed);
    box-shadow:0 0 20px rgba(0,247,255,0.12);
    font-size:20px;
}

.auth-topbar-text{
    font-size:20px;
    font-weight:800;
    letter-spacing:.2px;
}

.auth-topbar-nav{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.auth-topbar-link{
    text-decoration:none;
    color:#d9e5f5;
    padding:10px 12px;
    border-radius:10px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    font-size:14px;
    transition:.2s ease;
}

.auth-topbar-link:hover{
    border-color:rgba(0,247,255,0.22);
    color:#fff;
    background:rgba(255,255,255,0.06);
}

.auth-topbar-link-home{
    background:rgba(0,247,255,0.08);
}

/* =========================================
   MAIN LAYOUT
========================================= */

.auth-screen{
    min-height:calc(100vh - 88px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px 18px 36px;
}

.auth-shell{
    width:100%;
    max-width:1180px;
    display:grid;
    grid-template-columns:1fr 460px;
    gap:28px;
    align-items:stretch;
}

.auth-brand-panel{
    position:relative;
    overflow:hidden;
    border-radius:28px;
    background:
        radial-gradient(circle at top left, rgba(0,247,255,0.14), transparent 26%),
        radial-gradient(circle at bottom right, rgba(124,58,237,0.16), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 18px 50px rgba(0,0,0,0.28);
}

.auth-brand-inner{
    padding:42px 34px;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.auth-mini-label{
    font-size:12px;
    letter-spacing:1.4px;
    text-transform:uppercase;
    color:#9fb0c9;
    margin-bottom:12px;
    font-weight:700;
}

.auth-brand-panel h1,
.auth-form-top h2{
    margin:0 0 12px;
    line-height:1.12;
    font-weight:800;
}

.auth-brand-panel h1{
    font-size:46px;
    max-width:12ch;
}

.auth-brand-text{
    font-size:16px;
    line-height:1.9;
    color:#d7e4f5;
    max-width:52ch;
    margin-bottom:22px;
}

.auth-brand-points{
    display:flex;
    flex-direction:column;
    gap:12px;
    color:#e7f1ff;
    font-size:15px;
    line-height:1.7;
}

/* =========================================
   GLASS PANEL
========================================= */

.glass{
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.10);
    box-shadow:0 10px 30px rgba(0,0,0,0.22);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

.auth-form-panel{
    border-radius:28px;
    padding:30px 26px;
    box-shadow:0 18px 50px rgba(0,0,0,0.30);
}

.auth-form-top{
    margin-bottom:18px;
}

.auth-form-top h2{
    font-size:34px;
}

.auth-form-subtitle{
    color:#b8c7dc;
    font-size:15px;
    line-height:1.8;
    margin:0;
}

.auth-back-link{
    text-decoration:none;
    color:#9fefff;
    font-size:14px;
    font-weight:700;
}

.auth-topbar + .auth-screen .auth-form-panel{
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

/* =========================================
   FORM
========================================= */

.auth-modern-form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.auth-modern-field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.auth-modern-field label{
    font-size:14px;
    font-weight:700;
    color:#e8f0fb;
}

.auth-modern-field input,
.auth-modern-field textarea{
    width:100%;
    min-height:52px;
    padding:14px 15px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.10);
    background:rgba(255,255,255,0.04);
    color:#fff;
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
    outline:none;
    -webkit-appearance:none;
    appearance:none;
}

.auth-modern-field textarea{
    min-height:120px;
    resize:vertical;
}

.auth-modern-field input::placeholder,
.auth-modern-field textarea::placeholder{
    color:#90a2ba;
}

.auth-modern-field input:focus,
.auth-modern-field textarea:focus{
    border-color:rgba(0,247,255,0.55);
    box-shadow:0 0 0 3px rgba(0,247,255,0.14);
    background:rgba(255,255,255,0.06);
}

/* =========================================
   PASSWORD TOGGLE
========================================= */

.password-field-wrap{
    position:relative;
}

.password-field-wrap input{
    padding-right:52px !important;
}

.password-toggle-btn{
    position:absolute;
    top:50%;
    right:12px;
    transform:translateY(-50%);
    width:34px;
    height:34px;
    border:none;
    background:transparent;
    color:#a9bdd6;
    font-size:18px;
    cursor:pointer;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s ease;
}

.password-toggle-btn:hover{
    color:#ffffff;
    background:rgba(255,255,255,0.06);
}

.password-toggle-btn:focus{
    outline:none;
    box-shadow:0 0 0 2px rgba(0,247,255,0.18);
}

/* =========================================
   FIELD STATES / VALIDATION
========================================= */

.field-hint{
    font-size:12px;
    color:#8fa3bc;
    line-height:1.6;
    margin-top:2px;
}

.field-error{
    font-size:12px;
    color:#ffb9c0;
    line-height:1.5;
    margin-top:2px;
    display:none;
}

.auth-modern-field.has-error .field-error{
    display:block;
}

.auth-modern-field.has-error input,
.auth-modern-field.has-error textarea{
    border-color:rgba(255,75,92,0.5) !important;
    box-shadow:0 0 0 3px rgba(255,75,92,0.10) !important;
}

.auth-modern-field.is-valid input,
.auth-modern-field.is-valid textarea{
    border-color:rgba(0,255,156,0.30) !important;
    box-shadow:0 0 0 3px rgba(0,255,156,0.08) !important;
}

/* =========================================
   BUTTONS
========================================= */

.neon-btn{
    background:linear-gradient(135deg,#00f7ff,#7c3aed);
    color:#fff;
    box-shadow:0 0 18px rgba(0,247,255,0.22);
    transition:transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.neon-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 0 24px rgba(0,247,255,0.28);
}

.neon-btn:active{
    transform:scale(0.985);
}

.auth-main-btn{
    width:100%;
    min-height:54px;
    margin-top:6px;
    border:none;
    border-radius:14px;
    font-size:16px;
    font-weight:800;
    letter-spacing:.2px;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.auth-main-btn.is-loading{
    pointer-events:none;
    opacity:.9;
    position:relative;
}

.auth-main-btn .btn-text{
    display:inline-block;
}

.auth-main-btn .btn-loader{
    display:none;
    width:18px;
    height:18px;
    border:2px solid rgba(255,255,255,0.35);
    border-top-color:#fff;
    border-radius:50%;
    animation:authSpin .75s linear infinite;
}

.auth-main-btn.is-loading .btn-text{
    display:none;
}

.auth-main-btn.is-loading .btn-loader{
    display:inline-block;
}

@keyframes authSpin{
    to{transform:rotate(360deg);}
}

.outline-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:12px 16px;
    border-radius:14px;
    text-decoration:none;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.10);
    color:#fff;
    transition:.2s ease;
}

.outline-btn:hover{
    border-color:rgba(0,247,255,0.28);
    background:rgba(255,255,255,0.07);
}

.auth-form-bottom{
    margin-top:18px;
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:stretch;
}

.auth-form-bottom p{
    margin:0;
    color:#9fb0c9;
    text-align:center;
}

.auth-alt-btn{
    width:100%;
}

/* =========================================
   ALERTS
========================================= */

.form-message{
    border-radius:14px;
    padding:13px 14px;
    margin-bottom:16px;
    font-size:14px;
    line-height:1.7;
}

.error-box{
    background:rgba(255,75,92,0.12);
    border:1px solid rgba(255,75,92,0.26);
    color:#ffbec5;
}

.success-box{
    background:rgba(0,255,156,0.12);
    border:1px solid rgba(0,255,156,0.24);
    color:#a4ffd7;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px){
    .auth-shell{
        grid-template-columns:1fr;
        max-width:620px;
    }

    .auth-brand-panel{
        display:none;
    }

    .auth-form-panel{
        width:100%;
    }

    .auth-form-top h2{
        font-size:30px;
    }
}

/* =========================================
   SMARTPHONE
========================================= */

@media (max-width: 768px){
    .auth-screen{
        min-height:calc(100vh - 74px);
        padding:14px 0 20px;
        align-items:flex-start;
    }

    .auth-shell{
        max-width:100%;
        gap:0;
    }

    .auth-brand-panel{
        display:none;
    }

    .auth-form-panel{
        width:100%;
        max-width:100%;
        border-radius:22px 22px 0 0;
        padding:24px 16px 22px;
        min-height:auto;
    }

    .auth-form-top{
        margin-bottom:16px;
    }

    .auth-form-top h2{
        font-size:26px;
        margin-bottom:8px;
    }

    .auth-form-subtitle{
        font-size:14px;
        line-height:1.7;
    }

    .auth-modern-form{
        gap:12px;
    }

    .auth-modern-field{
        gap:7px;
    }

    .auth-modern-field label{
        font-size:14px;
    }

    .auth-modern-field input,
    .auth-modern-field textarea{
        min-height:50px;
        padding:14px;
        border-radius:13px;
    }

    .auth-main-btn{
        min-height:52px;
        font-size:16px;
        border-radius:14px;
    }

    .outline-btn{
        min-height:48px;
        font-size:15px;
        border-radius:13px;
    }

    .form-message{
        font-size:14px;
        padding:12px 13px;
        border-radius:12px;
    }

    .auth-topbar{
        padding:10px 12px 0;
    }

    .auth-topbar-inner{
        justify-content:center;
        gap:10px;
    }

    .auth-topbar-text{
        font-size:18px;
    }

    .auth-topbar-nav{
        width:100%;
        justify-content:center;
        gap:8px;
    }

    .auth-topbar-link{
        font-size:13px;
        padding:9px 10px;
    }
}

/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 420px){
    .auth-screen{
        padding-top:10px;
    }

    .auth-form-panel{
        padding:22px 14px 20px;
        border-radius:18px 18px 0 0;
    }

    .auth-form-top h2{
        font-size:24px;
    }

    .auth-modern-field input,
    .auth-modern-field textarea{
        padding:13px 12px;
    }

    .auth-topbar-text{
        font-size:17px;
    }

    .auth-topbar-link{
        font-size:12px;
        padding:8px 9px;
    }
}

.hp-field{
    position:absolute !important;
    left:-9999px !important;
    top:auto !important;
    width:1px !important;
    height:1px !important;
    opacity:0 !important;
    pointer-events:none !important;
}


.auth-register-btn{
    justify-content:center;
    min-height:52px;

    background:
        linear-gradient(
            135deg,
            #7c5cff,
            #00f7ff
        );

    border:none;

    color:#fff;

    box-shadow:
        0 12px 28px rgba(0,247,255,.20);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.auth-register-btn:hover{
    transform:translateY(-2px);

    filter:brightness(1.05);

    box-shadow:
        0 18px 34px rgba(0,247,255,.28);
}



.auth-register-btn{
    display:flex;
    align-items:center;
    justify-content:center;

    min-height:54px;

    border-radius:18px;

    text-decoration:none;

    font-weight:700;
    font-size:15px;

    color:#ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(124,92,255,.92),
            rgba(0,247,255,.92)
        );

    border:1px solid rgba(255,255,255,.10);

    box-shadow:
        0 12px 30px rgba(0,247,255,.16);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.auth-register-btn:hover{
    transform:translateY(-2px);

    filter:brightness(1.05);

    box-shadow:
        0 18px 34px rgba(124,92,255,.24);
}

