/* ================================================
   OSL CryptoTrading — Auth Pages CSS
   ================================================ */

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

:root {
    --bg:        #0b0f1a;
    --card:      #111827;
    --border:    #1e2d45;
    --accent:    #f0b90b;
    --accent2:   #d4a009;
    --green:     #0ecb81;
    --red:       #f6465d;
    --text:      #e8edf5;
    --muted:     #8a99b3;
    --radius:    14px;
}

body.auth-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    padding: 24px 16px;
    overflow-x: hidden;
    position: relative;
}

/* ── Background blobs ─────────────────────── */
.auth-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
.blob-1 {
    width: 400px; height: 400px;
    background: rgba(240,185,11,0.07);
    top: -100px; left: -100px;
}
.blob-2 {
    width: 300px; height: 300px;
    background: rgba(14,203,129,0.05);
    bottom: -80px; right: -80px;
}
.blob-3 {
    width: 200px; height: 200px;
    background: rgba(99,102,241,0.05);
    top: 40%; left: 60%;
}

/* ── Auth wrapper ─────────────────────────── */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

/* ── Logo ─────────────────────────────────── */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.logo-mark {
    width: 48px; height: 48px;
    background: var(--accent);
    color: #000;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.logo-title { font-size: 17px; font-weight: 800; color: var(--text); }
.logo-sub   { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ── Heading ──────────────────────────────── */
.auth-heading    { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.auth-subheading { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ── Alert box ────────────────────────────── */
.auth-alert {
    background: rgba(246,70,93,0.10);
    border: 1px solid rgba(246,70,93,0.30);
    border-left: 3px solid var(--red);
    color: #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
}
.auth-alert.auth-alert-success {
    background: rgba(14,203,129,0.10);
    border-color: rgba(14,203,129,0.30);
    border-left-color: var(--green);
    color: #6ee7b7;
}
.auth-alert a { color: var(--accent); font-weight: 700; }

/* ── Form elements ────────────────────────── */
.form-group-osl { margin-bottom: 18px; }

.form-label-osl {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 14px;
    color: var(--muted);
    font-size: 13px;
    z-index: 1;
}
.form-input-osl {
    width: 100%;
    background: #0d1322;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px 12px 40px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-input-osl:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240,185,11,0.12);
}
.form-input-osl::placeholder { color: #3d4f6b; }

.pass-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
}
.pass-toggle:hover { color: var(--text); }

.forgot-link {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}
.forgot-link:hover { color: var(--accent2); }

/* ── Remember checkbox ────────────────────── */
.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}
.remember-label input { accent-color: var(--accent); width: 15px; height: 15px; }

/* ── Submit button ────────────────────────── */
.btn-auth {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-auth:hover {
    background: var(--accent2);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(240,185,11,0.35);
}
.btn-auth:disabled { opacity: .7; transform: none; cursor: not-allowed; }

/* ── Divider ──────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer-text { text-align: center; font-size: 14px; color: var(--muted); margin: 0; }
.auth-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-link:hover { color: var(--accent2); text-decoration: underline; }

/* ── Demo creds box ───────────────────────── */
.demo-creds {
    background: rgba(240,185,11,0.06);
    border: 1px dashed rgba(240,185,11,0.25);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 20px;
    font-size: 13px;
}
.demo-title { font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.demo-row   { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--muted); }
.demo-row code {
    background: rgba(255,255,255,0.06);
    padding: 1px 8px;
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
}
.demo-row code:hover { background: rgba(240,185,11,0.15); }
.demo-btn {
    width: 100%;
    background: rgba(240,185,11,0.12);
    border: 1px solid rgba(240,185,11,0.3);
    color: var(--accent);
    border-radius: 8px;
    padding: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background .2s;
}
.demo-btn:hover { background: rgba(240,185,11,0.2); }

/* ── Password strength ────────────────────── */
.pass-strength { display: flex; align-items: center; gap: 10px; }
.strength-bar  { flex: 1; height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 4px; transition: width .3s, background .3s; }
.strength-text { font-size: 11px; font-weight: 600; min-width: 70px; }

/* ── Terms text ───────────────────────────── */
.terms-text { font-size: 12px; color: var(--muted); margin: 0; }
.terms-text a { color: var(--accent); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; border-radius: 16px; }
    .auth-heading { font-size: 20px; }
}
