/* Authentication Pages Styles (Login/Register) */

.auth-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 2.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.auth-form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px var(--primary-bg-light);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 1rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-link-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

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

.auth-divider {
    margin: 24px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    height: 0;
}

.auth-divider span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(10px);
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 10px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.google-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.google-btn i {
    font-size: 1.1rem;
    margin-right: 8px;
    color: #DB4437;
    /* Google red brand color */
}

/* Responsive: touch targets 44px */
@media (max-width: 768px) {
    .auth-container {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
    .form-input,
    .submit-btn,
    .google-btn {
        min-height: 44px;
    }
    .form-input {
        padding: 14px 16px;
    }
    .submit-btn,
    .google-btn {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 40px 16px;
        padding: 2rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }
}

/* Error messages - consistent style */
.form-error,
.error-message {
    color: #ef4444;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 6px;
    border-left: 3px solid #ef4444;
}

/* Dark mode enhancements */
[data-theme="dark"] .form-input {
    background: var(--bg-secondary, #2a2a2a);
    border-color: var(--border-medium, #404040);
}

[data-theme="dark"] .form-input:focus {
    background: var(--bg-card, #1e1e1e);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .auth-container {
    background: var(--bg-glass, rgba(30, 30, 30, 0.9));
}

[data-theme="dark"] .google-btn {
    background: var(--bg-secondary, #2a2a2a);
    border-color: var(--border-medium, #404040);
}

[data-theme="dark"] .form-error,
[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.1);
}