/**
 * Centered Login Page Styles - Clean & Focused Design
 * Optimized for single-column centered layout
 * 
 * @version 3.1
 * @created 2025-10-02
 */

/* ===== CENTERED LAYOUT OPTIMIZATIONS ===== */

/* Enhanced centered container */
.login-centered-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* Optimized logo for centered layout */
.login-logo h1 {
    font-size: 3rem !important;
    text-align: center;
    margin-bottom: 1rem;
}

/* Enhanced welcome section for centered layout */
.login-welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.login-welcome-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--login-text-primary);
    margin-bottom: 0.5rem;
}

.login-welcome-section p {
    color: var(--login-text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Enhanced form card for centered layout */
.login-glass-card {
    padding: 3rem 2.5rem !important;
    margin-bottom: 2rem;
    max-width: none;
    width: 100%;
}

/* Optimized input spacing for centered layout */
.login-input-group {
    margin-bottom: 1.5rem;
}

/* Enhanced button for centered layout */
.login-btn-primary {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Enhanced security notice for centered layout */
.login-security-notice {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--login-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--login-border);
    border-radius: var(--login-radius-lg);
    transition: var(--login-transition);
}

.login-security-notice:hover {
    background: var(--login-bg-glass-hover);
    transform: translateY(-2px);
}

.login-security-notice i {
    color: var(--login-success);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.login-security-notice span {
    color: var(--login-text-secondary);
    font-size: 0.875rem;
}

/* Enhanced footer links for centered layout */
.login-footer-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--login-border);
}

.login-footer-links p {
    margin-bottom: 1rem;
    color: var(--login-text-secondary);
}

.login-footer-links a {
    color: var(--login-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--login-transition);
}

.login-footer-links a:hover {
    color: var(--login-accent-hover);
    text-decoration: underline;
}

/* Agent login section for centered layout */
.login-agent-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--login-border);
}

.login-agent-section p {
    color: var(--login-text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.login-agent-section .login-btn {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

/* Enhanced floating shapes for centered layout */
.login-floating-shape:nth-child(1) {
    top: 15%;
    left: 5%;
    width: 100px;
    height: 100px;
}

.login-floating-shape:nth-child(2) {
    top: 25%;
    right: 8%;
    width: 80px;
    height: 80px;
}

.login-floating-shape:nth-child(3) {
    bottom: 30%;
    left: 8%;
    width: 120px;
    height: 120px;
}

.login-floating-shape:nth-child(4) {
    top: 60%;
    right: 12%;
    width: 60px;
    height: 60px;
}

.login-floating-shape:nth-child(5) {
    bottom: 15%;
    right: 5%;
    width: 90px;
    height: 90px;
}

/* ===== RESPONSIVE OPTIMIZATIONS ===== */

@media (max-width: 640px) {
    .login-centered-container {
        padding: 1rem;
    }
    
    .login-logo h1 {
        font-size: 2.25rem !important;
    }
    
    .login-welcome-section h2 {
        font-size: 1.75rem;
    }
    
    .login-glass-card {
        padding: 2rem 1.5rem !important;
    }
    
    .login-btn-primary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Reduce floating shapes on mobile */
    .login-floating-shape {
        opacity: 0.15;
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .login-logo h1 {
        font-size: 2rem !important;
    }
    
    .login-welcome-section h2 {
        font-size: 1.5rem;
    }
    
    .login-glass-card {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1rem;
    }
    
    .login-input-group {
        margin-bottom: 1.25rem;
    }
    
    .login-input-field {
        padding: 1rem 1rem 1rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .login-input-icon {
        left: 1rem;
        font-size: 1.1rem;
    }
}

/* ===== ENHANCED FOCUS STATES ===== */

.login-input-field:focus {
    transform: translateY(-1px);
    box-shadow: var(--login-shadow-lg), 0 0 0 4px rgba(100, 255, 218, 0.15);
}

.login-btn-primary:focus {
    outline: none;
    box-shadow: var(--login-shadow-xl), 0 0 0 4px rgba(100, 255, 218, 0.2);
}

/* ===== ENHANCED ANIMATIONS ===== */

@keyframes loginFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: loginFadeInUp 0.8s ease-out;
}

.login-glass-card {
    animation: loginFadeInUp 0.8s ease-out 0.2s both;
}

.login-security-notice {
    animation: loginFadeInUp 0.8s ease-out 0.4s both;
}

/* ===== ENHANCED HOVER EFFECTS ===== */

.login-glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--login-shadow-xl), 0 0 30px rgba(100, 255, 218, 0.1);
}

.login-input-field:hover {
    border-color: var(--login-border-hover);
    background: var(--login-bg-glass-hover);
}

/* ===== LOADING STATE ENHANCEMENTS ===== */

.login-btn-loading {
    position: relative;
    color: transparent;
}

.login-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid transparent;
    border-top: 2px solid var(--login-primary);
    border-radius: 50%;
    animation: loginSpin 1s linear infinite;
}

@keyframes loginSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

.login-input-field:focus-visible {
    outline: 2px solid var(--login-accent);
    outline-offset: 2px;
}

.login-btn:focus-visible {
    outline: 2px solid var(--login-accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-glass-card {
        border-width: 2px;
        background: rgba(17, 34, 64, 0.9);
    }
    
    .login-input-field {
        border-width: 2px;
        background: rgba(17, 34, 64, 0.8);
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .login-animated-bg,
    .login-floating-shape {
        display: none;
    }
    
    .login-glass-card {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}



