/* Authentication Pages Styling */
.auth-container {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.auth-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: none;
    width: 100%;
}

.auth-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.auth-card .card-header h2 {
    color: white !important;
}

.auth-form .form-control {
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    padding: 14px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    min-height: 50px;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 500;
    font-size: 16px;
    min-height: 52px;
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.auth-social-btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 15px;
    min-height: 48px;
    transition: all 0.3s ease;
}

.auth-social-btn:hover {
    transform: translateY(-1px);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-container {
        padding: 1rem 0.5rem;
    }
    
    .auth-card {
        margin: 0;
        border-radius: 8px;
    }
    
    .auth-card .card-body {
        padding: 1.5rem !important;
    }
}

@media (min-width: 768px) {
    .auth-card .card-body {
        padding: 2.5rem !important;
    }
}

@media (min-width: 992px) {
    .auth-card .card-body {
        padding: 3rem !important;
    }
}

/* Animation for form elements */
.auth-form .form-floating > label {
    transition: all 0.3s ease;
}

.auth-form .form-control:focus ~ label,
.auth-form .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error states */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    font-size: 13px;
    margin-top: 4px;
}

/* Success states */
.is-valid {
    border-color: #198754 !important;
}

.valid-feedback {
    font-size: 13px;
    margin-top: 4px;
    color: #198754;
}

/* Success states */
.alert-success {
    background-color: #d1edff;
    border-color: #bee5eb;
    color: #0c5460;
    border-radius: 8px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 8px;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    border-radius: 8px;
}

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

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

.strength-text {
    font-size: 12px;
}

.strength-level {
    font-weight: 500;
}

/* Form enhancements */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Smooth transitions */
.auth-form input,
.auth-form button,
.auth-social-btn {
    transition: all 0.3s ease;
}

/* Focus states */
.auth-form input:focus {
    transform: translateY(-1px);
}

/* Hover effects for social buttons */
.auth-social-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}