/**
 * BMS Secure Portal — Auth Pages Stylesheet
 * Split-panel design: dark left / white right
 */

/* ============================================================
   Variables
   ============================================================ */
:root {
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
}

/* push the split layout below the fixed navbar */
.auth-split {
    padding-top: 72px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================================
   Split Layout
   ============================================================ */
.auth-split {
    display: flex;
    min-height: 100vh;
}

/* ---- Left dark panel ---- */
.auth-panel-left {
    width: 55%;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 44px 60px;
    position: relative;
    overflow: hidden;
}

.auth-panel-left::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* Top brand row */
.auth-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.auth-brand-logo {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-brand-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
}

.auth-brand-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.auth-brand-tagline {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Center hero copy */
.auth-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0 40px;
}

.auth-hero-heading {
    font-size: 2.625rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.auth-hero-heading .highlight {
    color: #777;
}

.auth-hero-sub {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.7;
    max-width: 360px;
}

/* Feature list (register page) */
.auth-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #888;
}

.feat-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-icon svg {
    color: #22c55e;
}

/* Bottom security badges */
.auth-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 24px;
}

.auth-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.auth-badges span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #444;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---- Right white panel ---- */
.auth-panel-right {
    width: 45%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 72px;
}

.auth-form-wrap {
    width: 100%;
    max-width: 380px;
}

/* Security pill badge */
.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #166534;
    margin-bottom: 28px;
}

.auth-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* Form heading */
.auth-heading {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0a0a0a;
    margin-bottom: 6px;
    line-height: 1.15;
}

.auth-subheading {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 36px;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-error svg { color: #dc2626; flex-shrink: 0; margin-top: 1px; }

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-success svg { color: #16a34a; flex-shrink: 0; margin-top: 1px; }

.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }

/* ============================================================
   Form
   ============================================================ */
.auth-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Label row — supports inline Forgot link */
.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-forgot {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #0a0a0a;
    text-decoration: none;
}

.form-forgot:hover { text-decoration: underline; }

/* Input wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    color: #0a0a0a;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder { color: #bbb; }
.form-input:hover { border-color: #ccc; }
.form-input:focus {
    border-color: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}

/* Password eye toggle */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    z-index: 1;
}

.toggle-password:hover { color: #555; }

/* Subtle hint below field */
.form-hint {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #bbb;
    margin-top: 6px;
}

/* Password strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 3px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-fill.strength-weak   { width: 25%; background: #ef4444; }
.strength-fill.strength-fair   { width: 50%; background: #f59e0b; }
.strength-fill.strength-good   { width: 75%; background: #3b82f6; }
.strength-fill.strength-strong { width: 100%; background: #22c55e; }

.strength-text {
    font-size: 0.7rem;
    font-weight: 500;
    min-width: 44px;
    text-align: right;
    color: #bbb;
}

.strength-text.text-weak   { color: #ef4444; }
.strength-text.text-fair   { color: #f59e0b; }
.strength-text.text-good   { color: #3b82f6; }
.strength-text.text-strong { color: #22c55e; }

/* Password match */
.password-match {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 6px;
    min-height: 18px;
}

.password-match.match-yes { color: #22c55e; }
.password-match.match-no  { color: #ef4444; }

/* ============================================================
   Submit button
   ============================================================ */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #0a0a0a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
}

.btn-auth:hover {
    background: #222;
    transform: translateY(-1px);
}

.btn-auth:active { transform: translateY(0); }

/* ============================================================
   Footer link
   ============================================================ */
.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: #999;
}

.auth-footer-text a {
    color: #0a0a0a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #0a0a0a;
}

.auth-footer-text a:hover { opacity: 0.65; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .auth-split { flex-direction: column; }

    .auth-panel-left {
        width: 100%;
        padding: 40px 32px;
        min-height: auto;
    }

    .auth-hero { padding: 40px 0 32px; }

    .auth-hero-heading { font-size: 1.875rem; }

    .auth-panel-right {
        width: 100%;
        padding: 48px 32px;
    }
}

@media (max-width: 480px) {
    .auth-panel-left { padding: 32px 24px; }
    .auth-hero-heading { font-size: 1.5rem; }
    .auth-panel-right { padding: 40px 24px; }
}

