/**
 * Authentication Pages Styles
 */

.auth-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--secondary-light) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.auth-section::before {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Auth Card */
.auth-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

/* Auth Logo */
.auth-logo {
    width: 80px;
    height: 80px;
}

/* Auth Title */
.auth-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Form Styles */
.auth-form .form-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.auth-form .form-control {
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.14);
}

.auth-form .form-control.is-invalid {
    border-color: var(--error-color);
}

.auth-form .form-control.is-invalid:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.1);
}

/* Input Group Buttons */
.auth-form .input-group .btn {
    border: 1px solid var(--border-color);
    border-left: none;
    padding: 0.75rem 1rem;
}

.auth-form .input-group .btn:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

/* Links */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-base);
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Buttons */
.auth-form .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.auth-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.auth-form .btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.auth-form .btn-outline-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Checkbox */
.auth-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-form .form-check-label {
    margin-left: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

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

.auth-divider span {
    position: relative;
    background-color: var(--bg-white);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* Invalid Feedback */
.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--font-size-sm);
    color: var(--error-color);
}

/* Alert */
.alert-info {
    background-color: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary-dark);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

/* Loading State */
.auth-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-form .btn-primary.loading {
    position: relative;
    color: transparent;
}

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

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

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background-color: var(--bg-gray);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

.password-strength-bar.weak {
    width: 33%;
    background-color: var(--error-color);
}

.password-strength-bar.medium {
    width: 66%;
    background-color: var(--warning-color);
}

.password-strength-bar.strong {
    width: 100%;
    background-color: var(--success-color);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-title {
        font-size: var(--font-size-2xl);
    }
    
    .auth-subtitle {
        font-size: var(--font-size-base);
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
}
