/* Advanced Authentication Pages Styles */
.auth-container {
    min-height: 100vh;
    background: #f8f9fa;
}

.auth-image-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-content {
    text-align: center;
    max-width: 400px;
}

.auth-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.auth-features {
    text-align: left;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.feature-item i {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
}

.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.auth-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.auth-form {
    margin-bottom: 2rem;
}

.auth-input {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.auth-input {
    color: black !important;
}

.auth-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.15);
    background: white;
    color: black !important;
}

.form-control {
    color: black !important;
}

input[type="password"] {
    color: black !important;
}

.form-floating > .auth-input {
    padding: 1.625rem 1.25rem 0.625rem;
}

.form-floating > label {
    padding: 1rem 1.25rem;
    color: #6c757d;
    font-weight: 500;
}

.form-floating > .auth-input:focus ~ label,
.form-floating > .auth-input:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(214, 51, 132, 0.1);
}

.auth-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3);
    color: white;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

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

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.google-btn:hover {
    border-color: #db4437;
    color: #db4437;
    background: rgba(219, 68, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 68, 55, 0.2);
}

.facebook-btn:hover {
    border-color: #4267B2;
    color: #4267B2;
    background: rgba(66, 103, 178, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 103, 178, 0.2);
}

.apple-btn:hover {
    border-color: #000;
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-switch {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

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

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

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

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

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

.form-check-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .auth-image-section {
        display: none;
    }
    
    .auth-form-section {
        min-height: 100vh;
    }
    
    .auth-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .auth-form-container {
        padding: 1rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .social-login {
        gap: 0.5rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Animation for auth pages */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-form-container {
    animation: slideInRight 0.6s ease-out;
}

/* Focus states for better accessibility */
.auth-input:focus,
.password-toggle:focus,
.auth-btn:focus,
.social-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading state for auth button */
.auth-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Social Login Popup Styles */
.social-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

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

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

/* Alert animations */
.alert {
    animation: slideInDown 0.3s ease-out;
}

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

/* reCAPTCHA Styling */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.g-recaptcha > div {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.g-recaptcha > div:hover {
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.15);
}

/* Mobile responsive reCAPTCHA */
@media (max-width: 576px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}