/* Authentication Pages Stylesheet */
/* Dedicated styles for login, register, forgot-password, reset-password pages */
/* This file WILL NOT affect dashboard styles */

/* Preloader Styles */
.preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out !important;
}

.preloader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Auth Page Layout */
.radial-gradient::before {
    z-index: 1 !important;
}

.position-relative.z-index-5 {
    z-index: 10 !important;
}

.authentication-login {
    position: relative;
    z-index: 15 !important;
}

.auth-max-width {
    position: relative;
    z-index: 15 !important;
}

.auth-card-enhanced {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6441a4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.social-login-btn {
    transition: all 0.3s ease;
}

.social-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-back {
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Password Strength Indicator */
.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak {
    background: #dc3545;
    width: 33%;
}

.strength-medium {
    background: #ffc107;
    width: 66%;
}

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

/* Password Match Indicator */
.password-match {
    font-size: 0.875rem;
    margin-top: 5px;
}

.password-match.match {
    color: #28a745;
}

.password-match.no-match {
    color: #dc3545;
}

/* Legal Links Footer */
.legal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.legal-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.legal-link:hover {
    color: #667eea !important;
    transform: translateY(-1px);
}

.legal-link i {
    transition: all 0.3s ease;
}

.legal-link:hover i {
    transform: scale(1.1);
}

.legal-agreement {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.05);
}

.legal-agreement a {
    font-weight: 500;
    transition: all 0.2s ease;
}

.legal-agreement a:hover {
    text-decoration: underline !important;
}

/* Responsive Legal Footer */
@media (max-width: 576px) {
    .legal-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .legal-link {
        font-size: 0.75rem;
    }
    
    .legal-link i {
        font-size: 0.875rem !important;
    }
}

/* Animation for Legal Links */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-footer,
.legal-agreement {
    animation: fadeInUp 0.5s ease-out;
}

/* Copyright Text */
.legal-footer p {
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}
