/* ============================================
   Authentication Pages Styles
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2B4C7D 0%, #1a2e4a 100%);
    position: relative;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 76, 125, 0.9) 0%, rgba(26, 46, 74, 0.95) 100%);
}

.auth-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.auth-logo {
    max-height: 100px;
    margin-bottom: 20px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-header h2 {
    color: #2B4C7D;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: #7F8C8D;
    font-size: 1rem;
    margin-bottom: 30px;
}

.auth-form {
    margin-top: 30px;
}

.form-floating {
    position: relative;
}

.form-floating > .form-control {
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding-right: 2.5rem;
}

.form-floating > .form-control:focus {
    border-color: #2B4C7D;
    box-shadow: 0 0 0 0.2rem rgba(43, 76, 125, 0.15);
}

.form-floating > label {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #7F8C8D;
    padding-right: 2.5rem;
}

.form-floating > label i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #2B4C7D;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7F8C8D;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #2B4C7D;
}

.password-strength {
    margin-top: 8px;
    font-weight: 600;
}

.password-requirements {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #E0E0E0;
}

.requirements-list {
    margin: 8px 0 0 0;
    padding-right: 20px;
    list-style: none;
}

.requirements-list li {
    margin: 5px 0;
    font-size: 0.9rem;
}

.auth-btn {
    background: linear-gradient(135deg, #2B4C7D 0%, #1a2e4a 100%);
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(43, 76, 125, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 76, 125, 0.4);
    background: linear-gradient(135deg, #1a2e4a 0%, #2B4C7D 100%);
}

.auth-btn:active {
    transform: translateY(0);
}

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

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

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #7F8C8D;
    font-weight: 600;
}

.social-auth .social-btn {
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    color: #2B4C7D;
    transition: all 0.3s ease;
}

.social-auth .social-btn:hover {
    background: #F8F9FA;
    border-color: #2B4C7D;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-auth .social-btn i {
    margin-left: 8px;
    font-size: 1.2rem;
}

.auth-footer {
    margin-top: 25px;
}

.auth-footer p {
    margin: 10px 0;
    color: #7F8C8D;
}

.auth-link {
    color: #2B4C7D;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #E74C3C;
    text-decoration: underline;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    border-radius: 5px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #2B4C7D;
    border-color: #2B4C7D;
}

.form-check-label {
    cursor: pointer;
    margin-right: 10px;
    color: #2C3E50;
}

.alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 1.75rem;
    }
    
    .auth-logo {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 15px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}
