:root {
    --primary: #e8590c;
    --primary-dark: #c2410c;
    --navy: #000000;
    --navy-light: #1a1a1a;
    --success: #2e7d32;
    --danger: #c62828;
    --bg: #f5f6fa;
    --card-bg: #ffffff;
    --text: #1f2430;
    --muted: #6b7280;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-side {
    flex: 1 1 50%;
    background: var(--navy);
    color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--navy-light);
    opacity: 0.6;
}

.auth-side-content { position: relative; z-index: 1; max-width: 440px; }

.auth-side img.auth-logo-img {
    width: 91px;
    height: auto;
    margin-bottom: 32px;
}

.auth-side h1 {
    font-size: 38px;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
    font-weight: 800;
}

.auth-side .auth-subtitle {
    color: #9fb0c9;
    font-size: 15px;
    margin: 0 0 36px;
}

.auth-side h1,
.auth-brand-name {
    font-size: 36px;
    letter-spacing: 0.06em;
    font-weight: 800;
    color: #fff;
    margin: 12px 0 4px;
}

.auth-side .auth-subtitle {
    color: #9fb0c9;
    font-size: 14px;
    margin: 0 0 32px;
}

.auth-feature-list { list-style: none; padding: 0; margin: 0; }
.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #d6dee9;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.auth-feature-list li:last-child { border-bottom: none; }

.auth-form-side {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg);
}

.auth-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    font-size: 24px;
    margin: 0 0 4px;
    color: var(--text);
    font-weight: 800;
}

.auth-card .auth-card-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 28px;
}

.form-group { margin-bottom: 18px; }

.form-group-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--muted);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #f8f9fb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover { background: var(--navy-light); }
.btn:disabled { background: #9ca3af; cursor: not-allowed; }

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
}

.alert-error {
    background: #fdecea;
    color: var(--danger);
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #e8f5e9;
    color: var(--success);
    border: 1px solid #c8e6c9;
}

.auth-links {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

.password-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.6;
    padding: 8px 10px;
    background: #f8f9fb;
    border-radius: 6px;
    border-left: 3px solid var(--border);
}

.auth-forgot-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 860px) {
    .auth-split { flex-direction: column; }
    .auth-side { padding: 40px 30px; }
}

/* Standalone centered card layout for one-off action pages
   (set password, forgot password) that aren't the main split-screen login */
.auth-standalone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-standalone .auth-card-logo {
    text-align: center;
    margin-bottom: 20px;
}

.auth-standalone .auth-card-logo img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.auth-standalone .auth-card-logo h1 {
    font-size: 20px;
    color: var(--navy);
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.03em;
}
