/* Authentication Pages Styles */

.auth-section {
    padding: 2rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-beige) 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Centered single card layout (for register page without benefits) */
.auth-container:has(.auth-card:only-child) {
    max-width: 560px;
}

.auth-card {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 560px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.auth-header::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #e6b83d 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(247, 201, 72, 0.3);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
}

.auth-subtitle {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--brand-dark);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-button);
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.toggle-password:hover {
    background-color: var(--bg-cream);
}

.toggle-password i {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

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

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-200);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--brand-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--brand-primary-light);
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--gray-200);
}

.auth-divider span {
    background-color: var(--bg-light);
    padding: 0 1rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--gray-200);
    background-color: var(--bg-light);
    color: var(--brand-text);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.btn-social:hover {
    background-color: var(--bg-cream);
    border-color: var(--brand-primary);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.auth-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--brand-primary-light);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background-color: #dc3545;
}

.strength-fill.fair {
    width: 50%;
    background-color: #ffc107;
}

.strength-fill.good {
    width: 75%;
    background-color: var(--brand-primary);
}

.strength-fill.strong {
    width: 100%;
    background-color: #28a745;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-help {
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.terms-link {
    color: var(--brand-primary);
    text-decoration: none;
}

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

/* Auth Benefits Section */
.auth-benefits {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-light);
}

.auth-benefits h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--brand-dark);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    background-color: var(--bg-cream);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    width: 24px;
    height: 24px;
    color: var(--brand-primary);
}

.benefit-text h4 {
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
    font-size: 1rem;
}

.benefit-text p {
    color: var(--brand-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Form Validation Styles */
.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #28a745;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--brand-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 1.5rem 0 3rem;
    }
    
    .auth-container {
        padding: 0 1rem;
    }
    
    .auth-card {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .auth-benefits {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-header::before {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 1rem 0 2rem;
        min-height: auto;
    }
    
    .auth-container {
        padding: 0 0.75rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .auth-benefits {
        padding: 1.5rem;
    }
    
    .auth-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .auth-header::before {
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }
    
    .auth-title {
        font-size: 1.35rem;
    }
    
    .auth-subtitle {
        font-size: 0.875rem;
    }
    
    .form-input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    }
    
    .input-icon {
        left: 0.75rem;
        width: 16px;
        height: 16px;
    }
    
    .toggle-password {
        right: 0.75rem;
    }
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus within styling for better UX */
.input-group:focus-within .input-icon {
    color: var(--brand-primary);
}

/* Custom date input styling */
.form-input[type="date"] {
    color: var(--brand-text);
}

.form-input[type="date"]::-webkit-calendar-picker-indicator {
    color: var(--brand-primary);
    cursor: pointer;
}
