:root {
    --navy: #0f172a;
    --navy-mid: #1e293b;
    --blue: #3b82f6;
    --blue-hover: #2563eb;
    --text: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --bg: #f1f5f9;
    --white: #ffffff;
    --error-bg: #fef2f2;
    --error-text: #b91c1c;
    --success-bg: #f0fdf4;
    --success-text: #15803d;
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

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

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

.auth-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    width: 100%;
    max-width: 900px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.auth-brand {
    background: var(--navy);
    color: var(--white);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.auth-brand h1 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-brand p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.auth-firm {
    margin-top: 36px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.auth-form-panel {
    padding: 48px 40px;
}

.auth-form-panel h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0 0 28px;
    font-size: 13px;
    color: var(--text-secondary);
}

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

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.auth-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.btn-primary {
    width: 100%;
    margin-top: 8px;
    padding: 11px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: var(--navy-mid);
}

.alert {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #fecaca;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #bbf7d0;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 768px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 32px 24px;
    }

    .auth-form-panel {
        padding: 32px 24px;
    }
}
