/* =============================================
   AUTH PAGES — Professional UI
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'circularstd', 'Segoe UI', sans-serif;
    background: #0f1114;
    color: #c9d1d9;
    overflow: hidden;
}

/* ── Layout ─────────────────────────────────── */
.auth-page {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left brand panel */
.auth-brand {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    background: linear-gradient(145deg, #1a1d21 0%, #23272b 100%);
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255,155,68,.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 80%, rgba(252,96,117,.14) 0%, transparent 60%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 380px;
}

.auth-brand-logo {
    margin-bottom: 36px;
}
.auth-brand-logo img {
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(255,155,68,.35));
}

.auth-brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.auth-brand p {
    font-size: 15px;
    color: #8b949e;
    margin: 0 0 40px;
    line-height: 1.7;
}

/* Feature list */
.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    font-size: 14px;
    color: #c9d1d9;
    transition: background .2s;
}
.auth-features li:hover { background: rgba(255,155,68,.08); }
.auth-features li .feat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff9b44, #fc6075);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,96,117,.3);
}

/* Decorative circles */
.auth-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.auth-deco-1 {
    width: 320px; height: 320px;
    bottom: -100px; right: -100px;
    border: 1px solid rgba(255,155,68,.12);
}
.auth-deco-2 {
    width: 200px; height: 200px;
    bottom: -60px; right: -60px;
    border: 1px solid rgba(252,96,117,.15);
}
.auth-deco-3 {
    width: 90px; height: 90px;
    top: 30px; left: 20px;
    background: rgba(255,155,68,.06);
}

/* Right form panel */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 32px;
    overflow-y: auto;
    background: #13161a;
}

.auth-form-card {
    width: 100%;
    max-width: 420px;
}

/* Header inside form panel */
.auth-form-header {
    margin-bottom: 36px;
    text-align: center;
}
.auth-form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 8px;
}
.auth-form-header p {
    font-size: 14px;
    color: #8b949e;
    margin: 0;
}

/* Form elements */
.auth-form .form-group {
    margin-bottom: 20px;
}
.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 8px;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.auth-form .form-control {
    width: 100%;
    height: 48px;
    background: #1c2128;
    border: 1.5px solid #30363d;
    border-radius: 10px;
    color: #e6edf3;
    font-size: 15px;
    padding: 0 16px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.auth-form .form-control:focus {
    border-color: #ff9b44;
    box-shadow: 0 0 0 3px rgba(255,155,68,.15);
    background: #1c2128;
    color: #e6edf3;
}
.auth-form .form-control::placeholder { color: #484f58; }

/* Input group */
.auth-form .input-group {
    position: relative;
    display: flex;
}
.auth-form .input-group .form-control {
    border-radius: 10px 0 0 10px;
    border-right: none;
    flex: 1;
}
.auth-form .input-group .input-group-append {
    display: flex;
}
.auth-form .input-group-text {
    background: #1c2128;
    border: 1.5px solid #30363d;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #8b949e;
    cursor: pointer;
    padding: 0 14px;
    font-size: 15px;
    transition: color .2s, border-color .2s;
    display: flex;
    align-items: center;
}
.auth-form .input-group:focus-within .form-control,
.auth-form .input-group:focus-within .input-group-text {
    border-color: #ff9b44;
    box-shadow: none;
}
.auth-form .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(255,155,68,.15);
    border-radius: 10px;
}
.auth-form .input-group-text:hover { color: #ff9b44; }

/* Forgot link row */
.auth-form .label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.auth-form .label-row label { margin-bottom: 0; }
.auth-form .forgot-link {
    font-size: 13px;
    color: #ff9b44;
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s;
}
.auth-form .forgot-link:hover { opacity: .75; color: #ff9b44; }

/* Primary button */
.auth-btn {
    display: block;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #ff9b44 0%, #fc6075 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(252,96,117,.35);
    margin-top: 6px;
}
.auth-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(252,96,117,.45);
}
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Secondary / ghost button */
.auth-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1.5px solid #30363d;
    border-radius: 10px;
    color: #8b949e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.auth-btn-outline:hover {
    border-color: #ff9b44;
    color: #ff9b44;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #484f58;
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #21262d;
}

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #8b949e;
}
.auth-footer a {
    color: #ff9b44;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.auth-footer a:hover { opacity: .75; }

/* Alert overrides */
.auth-alert {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.auth-alert i { margin-top: 1px; flex-shrink: 0; }
.auth-alert.danger {
    background: rgba(248,81,73,.1);
    border-color: rgba(248,81,73,.25);
    color: #f85149;
}
.auth-alert.success {
    background: rgba(63,185,80,.1);
    border-color: rgba(63,185,80,.25);
    color: #3fb950;
}
.auth-alert.warning {
    background: rgba(255,155,68,.1);
    border-color: rgba(255,155,68,.25);
    color: #ff9b44;
}
.auth-alert a { color: inherit; word-break: break-all; font-weight: 600; }

/* Password strength */
.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #21262d;
    margin-top: 8px;
    overflow: hidden;
    display: none;
}
.strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width .35s ease, background .35s ease;
}
.strength-label {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Match indicator */
.match-indicator {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Back link */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #8b949e;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color .2s;
}
.auth-back:hover { color: #ff9b44; }
.auth-back i { font-size: 13px; }

/* Dev mode box */
.dev-box {
    background: rgba(255,155,68,.07);
    border: 1px dashed rgba(255,155,68,.35);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: #ff9b44;
    line-height: 1.6;
}
.dev-box strong { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.dev-box a { color: #ff9b44; word-break: break-all; text-decoration: underline; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    html, body { overflow: auto; }
    .auth-page { flex-direction: column; height: auto; min-height: 100vh; }
    .auth-brand {
        flex: none;
        padding: 36px 24px;
        min-height: auto;
    }
    .auth-brand h1 { font-size: 22px; }
    .auth-features { display: none; }
    .auth-form-panel { padding: 36px 20px; }
}
