/* Presidential Login Page CSS */
:root {
    --presidential-navy: #0a2342;
    --presidential-gold: #bfa458;
    --presidential-blue: #1a3a5f;
    --presidential-light: #e8f4f8;
    --presidential-dark: #061a2e;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--presidential-navy) 0%, var(--presidential-blue) 50%, var(--presidential-dark) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    line-height: 1.6;
    padding: 20px;
    position: relative;
}

/* Presidential Login Container */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--presidential-gold);
    max-width: 440px;
    width: 100%;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Presidential Header */
.login-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--presidential-gold);
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--presidential-gold);
    padding: 5px;
    background: white;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-header h1 {
    color: var(--presidential-navy);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Presidential Form */
form {
    width: 100%;
}

form h2 {
    color: var(--presidential-navy);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.3px;
}

/* Input Containers */
.input-container {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-container .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--presidential-gold);
    font-size: 1.1rem;
    z-index: 2;
}

.input-container input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    color: var(--presidential-navy);
    font-weight: 500;
}

.input-container input:focus {
    outline: none;
    border-color: var(--presidential-gold);
    box-shadow: 0 0 0 3px rgba(191, 164, 88, 0.1);
    transform: translateY(-1px);
}

.input-container input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* Presidential Button */
button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--presidential-gold), #d4af37);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(191, 164, 88, 0.3);
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #d4af37, var(--presidential-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 164, 88, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Forgot Password */
.forgot-password {
    margin-top: 20px;
    text-align: center;
}

.forgot-password a {
    color: var(--presidential-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--presidential-gold);
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    border-left: 4px solid #a71e2a;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

/* Presidential Footer - Matches Form Width */
.presidential-footer {
    background: linear-gradient(135deg, var(--presidential-dark) 0%, var(--presidential-navy) 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--presidential-gold);
    border-radius: 0 0 20px 20px;
    border-top: none;
    max-width: 440px;
    width: 100%;
    margin-top: -2px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.footer-version {
    font-size: 0.8rem;
    color: var(--presidential-gold);
    font-weight: 600;
    background: rgba(191, 164, 88, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(191, 164, 88, 0.3);
}

.footer-developer {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
}

/* Background Decorative Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(191, 164, 88, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(10, 35, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(26, 58, 95, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* Presidential Seal Effect */
.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--presidential-gold), var(--presidential-navy), var(--presidential-gold));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.1;
}

/* Main container wrapper */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 440px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .login-container {
        padding: 30px 25px;
    }
    
    .presidential-footer {
        padding: 18px 25px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    form h2 {
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .footer-copyright,
    .footer-version,
    .footer-developer {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
    }
    
    .presidential-footer {
        padding: 15px 20px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .login-header h1 {
        font-size: 1.3rem;
    }
    
    form h2 {
        font-size: 1.1rem;
    }
    
    .input-container input {
        padding: 12px 12px 12px 40px;
        font-size: 0.95rem;
    }
    
    button[type="submit"] {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.login-container {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.presidential-footer {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.input-container {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

button[type="submit"] {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.forgot-password {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Focus styles for accessibility */
.input-container input:focus-visible {
    outline: 2px solid var(--presidential-gold);
    outline-offset: 2px;
}

button[type="submit"]:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-container {
        border: 3px solid var(--presidential-gold);
    }
    
    .presidential-footer {
        border: 3px solid var(--presidential-gold);
        border-top: none;
    }
    
    .input-container input {
        border: 2px solid #000;
    }
    
    .error-message {
        border: 2px solid #a71e2a;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .login-wrapper,
    .login-container,
    .presidential-footer,
    .input-container,
    button[type="submit"],
    .forgot-password {
        animation: none;
    }
    
    .input-container input,
    button[type="submit"] {
        transition: none;
    }
}