* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: #1a3a3a;
}

/* Background image with overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(0.4) contrast(1.1);
    z-index: -2;
}

/* Dark overlay for better contrast */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 85, 162, 0.3) 0%, rgba(0, 51, 102, 0.4) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 480px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 85, 162, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.logo-section {
    background: linear-gradient(135deg, #057638 0%, #003366 100%);
    padding: 20px 25px;
    text-align: center;
    color: white;
}

.logo-section h1 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.tagline {
    font-size: 13px;
    opacity: 0.95;
}

form {
    padding: 20px 25px;
}

h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: center;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #0055A2;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 85, 162, 0.1);
}

.form-group input.error {
    border-color: #dc3545;
}

.form-group input.success {
    border-color: #28a745;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 3px;
    min-height: 15px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: #0055A2;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.alert {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.btn-primary {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #057638 0%, #003366 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 85, 162, 0.3);
}

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

.btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
}

.form-footer p {
    color: #666;
    font-size: 13px;
}

.form-footer a {
    color: #0055A2;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 520px) {
    .logo-section {
        padding: 15px 20px;
    }
    
    .logo-section h1 {
        font-size: 22px;
    }
    
    form {
        padding: 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}