/**
 * Auth Page Styles
 * Dedicated styling for the Sign In/Sign Up page
 */

/* Auth Section Layout */
.auth-section {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 180px 0 80px;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(217, 37, 37, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.auth-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(217, 37, 37, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Branding Side */
.auth-branding {
    padding-right: 2rem;
}

.branding-content {
    max-width: 500px;
}

.auth-forms {
    flex: 0 0 440px;
    /* Force consistent card width */
    display: flex;
    justify-content: flex-end;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(217, 37, 37, 0.3));
}

.auth-branding h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-branding>p,
.branding-content>p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.feature-item i {
    color: var(--brand-primary);
    font-size: 1.1rem;
}

/* Auth Card */
.auth-forms {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 3.5rem 3rem 4.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 37, 37, 0.3);
}

/* Form Styles */
.auth-form {
    padding-top: 0;
    animation: fadeIn 0.3s ease;
}

.auth-form.hidden {
    display: none;
}

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

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

.auth-form h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Google Button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Form Fields */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(217, 37, 37, 0.05);
    box-shadow: 0 0 0 3px rgba(217, 37, 37, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--text-primary);
}

.password-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--brand-primary);
    text-decoration: underline;
}

.forgot-link {
    color: var(--brand-primary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 0.8;
}

/* Full Width Button */
.btn-full {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Footer Text */
.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer-text a,
.switch-tab-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.auth-footer-text a:hover {
    opacity: 0.8;
}

.switch-tab-link:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-primary);
}

/* Success Icon */
.success-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: #10B981;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Removed auth-footer class since we now use the standard footer */

/* Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .auth-branding {
        padding-right: 0;
        text-align: center;
    }

    .branding-content {
        max-width: 100%;
    }

    .auth-branding h1 {
        font-size: 2.2rem;
    }

    .features-list {
        display: none;
    }

    .auth-section {
        padding: 100px 1rem 40px;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 1.75rem;
    }

    .auth-branding h1 {
        font-size: 1.75rem;
    }

    .auth-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-tabs {
        margin-bottom: 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }
}