.auth-page {
    padding-top: 140px; /* increased top whitespace for dialog */
    padding-bottom: 80px;
    background: #ffffff;
}

/* Ensure auth pages override generic main-content spacing */
.main-content.auth-page {
    padding-top: 140px;
    padding-bottom: 80px;
}

.auth-wrapper {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.auth-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

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

.form-label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1f2937;
    transition: all 0.2s ease;
    background: #ffffff;
}

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

.auth-actions {
    margin-top: 8px;
}

.btn-primary {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(29, 78, 216, 0.35);
}

.btn-ghost {
    width: 100%;
    background: #ffffff;
    color: #1f2937;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: #f9fafb;
}

.social-login {
    margin-top: 12px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 6px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    color: #9ca3af;
    font-size: 0.85rem;
}

.error-box {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.success-box {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    display: inline-flex;
}

.btn-github {
    width: 100%;
    background: #111827;
    color: #ffffff;
    padding: 12px 16px;
    border: 1px solid #111827;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.25);
    text-decoration: none;
}

.btn-github:hover {
    background: #0b1220;
    border-color: #0b1220;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.35);
}

.auth-footer {
    text-align: center;
    margin-top: 10px;
    color: #6b7280;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 480px) {
    .auth-card {
        padding: 18px;
    }
}


