/* TradeGenie Identity Pages — Auth UI */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0d0f14;
    --surface: #161a23;
    --border: #252b38;
    --accent: #6366f1;
    --accent-h: #4f46e5;
    --text: #e2e8f0;
    --muted: #8892a4;
    --error-bg: #2d1a1a;
    --error: #f87171;
    --input-bg: #1e2330;
    --radius: 12px;
    --font: 'Inter', system-ui, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.auth-container {
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Headings */
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    margin: 0.4rem 0 1.75rem;
}

/* Alert */
.alert {
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.error-list {
    padding-left: 1rem;
}

.error-list li {
    margin-bottom: 0.25rem;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.form-input {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
    color: var(--muted);
}

.field-error {
    font-size: 0.8rem;
    color: var(--error);
}

/* Remember me / inline row */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--muted);
    cursor: pointer;
}

.checkbox-label input {
    accent-color: var(--accent);
    width: 1rem;
    height: 1rem;
}

/* Primary button */
.btn-primary {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.5rem;
    width: 100%;
}

.btn-primary:hover {
    background: var(--accent-h);
}

.btn-primary:active {
    transform: scale(0.99);
}

/* Footer link */
.auth-footer {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 1.5rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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