.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    background-color: #fafafa;
    transition: background-color 0.2s ease;
}

body.dark-mode .auth-page {
    background-color: #0f0f0f;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 2rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.dark-mode .auth-card {
    background-color: #1a1a1a;
    border-color: #2e2e2e;
}

.auth-title {
    font-size: 2rem;
    font-weight: 600;
    color: #18181b;
    text-align: center;
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
}

body.dark-mode .auth-title {
    color: #e4e4e7;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

body.dark-mode .form-group label {
    color: #94a3b8;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #0f172a;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.dark-mode .form-group input {
    background-color: #1e1e1e;
    border-color: #3f3f46;
    color: #e4e4e7;
}

.form-group input:focus {
    outline: none;
    border-color: #18181b;
}

body.dark-mode .form-group input:focus {
    border-color: #e4e4e7;
}

.btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
}

.btn-primary {
    background-color: #18181b;
    color: white;
    border: 1px solid #18181b;
}

.btn-primary:hover {
    background-color: #3f3f46;
    border-color: #3f3f46;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #64748b;
}

.auth-footer a {
    color: #18181b;
    text-decoration: none;
    font-weight: 500;
}

body.dark-mode .auth-footer {
    color: #94a3b8;
}

body.dark-mode .auth-footer a {
    color: #e4e4e7;
}

.error-message {
    background-color: #fee2e2;
    color: #ef4444;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

body.dark-mode .error-message {
    background-color: #450a0a;
    color: #fca5a5;
}

.success-message {
    background-color: #d1fae5;
    color: #10b981;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

body.dark-mode .success-message {
    background-color: #064e3b;
    color: #6ee7b7;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 1.5rem 1.5rem 1.8rem;
    }
    .auth-title {
        font-size: 1.8rem;
    }
}