:root {
    --auth-bg: #f8fafc;
    --auth-form-bg: #ffffff;
    --auth-text: #0f172a;
    --auth-text-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-primary: #3b82f6;
    --auth-primary-hover: #2563eb;
    --auth-error: #ef4444;
}

[data-theme="dark"] {
    --auth-bg: #0f172a;
    --auth-form-bg: #1e293b;
    --auth-text: #f8fafc;
    --auth-text-muted: #94a3b8;
    --auth-border: #334155;
    --auth-primary: #3b82f6;
    --auth-primary-hover: #60a5fa;
    --auth-error: #f87171;
}

body.auth-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--auth-bg);
    color: var(--auth-text);
    min-height: 100vh;
    display: flex;
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-right {
    flex: 1;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-hover) 100%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: white;
    text-align: center;
}

@media (min-width: 1024px) {
    .auth-right {
        display: flex;
    }
}

.auth-right h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-right p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 80%;
}

.auth-form-wrapper {
    background: var(--auth-form-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--auth-border);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--auth-primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.auth-subtitle {
    color: var(--auth-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--auth-text);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--auth-border);
    border-radius: 0.5rem;
    background-color: var(--auth-bg);
    color: var(--auth-text);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

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

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    accent-color: var(--auth-primary);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--auth-text-muted);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--auth-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--auth-primary-hover);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--auth-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
