/* ============================================================
   AUTH PAGE STYLES — Share Market Pro (Trading Terminal)
   ============================================================ */

/* ── Body ──────────────────────────────────────────────── */
.auth-body {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Subtle radial glow */
.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 200, 83, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 200, 83, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Grid lines */
.auth-body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.auth-main {
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-container {
    max-width: 460px;
    margin: 0 auto;
}

/* ── Brand ─────────────────────────────────────────────── */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d0d0d;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.auth-brand__logo-icon {
    width: 40px;
    height: 40px;
    background: #00c853;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Card ──────────────────────────────────────────────── */
.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #e2e5ea;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0,0,0,0.03) inset;
}

.auth-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: #0d0d0d;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: #6b6b6b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ── Divider ───────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: #888888;
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e5ea;
}

/* ── Footer Link ───────────────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b6b6b;
}

.auth-footer a {
    color: #00c853;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

/* ── Trust Line ────────────────────────────────────────── */
.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1.75rem;
    font-size: 0.75rem;
    color: #888888;
    letter-spacing: 0.02em;
}

/* ── Role Selector ─────────────────────────────────────── */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.role-option { position: relative; }

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1.5px solid #e2e5ea;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b6b6b;
    text-align: center;
    background: #f8f9fa;
}

.role-option input:checked + label {
    border-color: #00c853;
    background: rgba(0, 200, 83, 0.06);
    color: #00c853;
}

.role-option label:hover {
    border-color: rgba(0, 200, 83, 0.35);
    color: #4a4a4a;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card { padding: 1.75rem 1.25rem; }
    .auth-body { padding: 1.5rem 1rem; }
}

/* ============================================================
   DARK THEME OVERRIDES
   ============================================================ */
[data-theme="dark"] .auth-body {
    background: #050505;
}

[data-theme="dark"] .auth-body::before {
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 200, 83, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 200, 83, 0.03) 0%, transparent 50%);
}

[data-theme="dark"] .auth-body::after {
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
}

[data-theme="dark"] .auth-brand a {
    color: #f5f5f5;
}

[data-theme="dark"] .auth-card {
    background: #0d0d0d;
    border-color: #1f1f1f;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255,255,255,0.03) inset;
}

[data-theme="dark"] .auth-title {
    color: #f5f5f5;
}

[data-theme="dark"] .auth-subtitle {
    color: #555;
}

[data-theme="dark"] .auth-divider {
    color: #444;
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
    background: #1f1f1f;
}

[data-theme="dark"] .auth-footer {
    color: #555;
}

[data-theme="dark"] .auth-trust {
    color: #333;
}

[data-theme="dark"] .role-option label {
    border-color: #1f1f1f;
    background: #111;
    color: #555;
}

[data-theme="dark"] .role-option input:checked + label {
    border-color: #00c853;
    background: rgba(0, 200, 83, 0.06);
    color: #00c853;
}

[data-theme="dark"] .role-option label:hover {
    border-color: rgba(0, 200, 83, 0.35);
    color: #9e9e9e;
}
