/*
 * auth.css — Arbie Stocks | Login & Register screens
 * Shares the dark Signal Room variables from landing.css.
 * Load both: landing.css then auth.css.
 */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* Back link in top-left corner */
.auth-back {
    position: fixed;
    top: 24px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    z-index: 10;
}
.auth-back:hover { color: var(--text-muted); }

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 36px;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

/* Headline */
.auth-headline {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-subline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Alerts */
.auth-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    border-left: 3px solid;
}
.auth-alert.error   { color: #fca5a5; background: rgba(239,68,68,0.08); border-color: #ef4444; }
.auth-alert.success { color: #6ee7b7; background: rgba(0,200,5,0.08);   border-color: var(--green); }

/* Form fields */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.auth-field .field-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.auth-field input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.auth-field input::placeholder { color: var(--text-dim); }
.auth-field input:focus {
    border-color: rgba(0,168,4,0.4);
    background: rgba(0,168,4,0.04);
}

/* Override browser autofill white/blue background */
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-card-2) inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    border-color: var(--border);
    transition: background-color 5000s ease-in-out 0s;
}

/* Forgot password link */
.auth-forgot {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.auth-forgot:hover { color: var(--text-muted); }

/* Submit button */
.auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 0 20px rgba(0,200,5,0.2);
    transition: box-shadow 0.2s, transform 0.15s;
}
.auth-submit:hover {
    box-shadow: 0 0 32px rgba(0,200,5,0.4);
    transform: translateY(-1px);
}

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
}
.auth-footer a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
    .auth-back { left: 16px; }
}
