* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #002366;
    padding: 2rem 1rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background-color: #F9F9F9;
    padding: 2.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.header img{
    width: 50%;
    height: auto;
}

.header h1 {
    color: #002366;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.header h1 span {
    color: #002366;
    font-size: 1.6rem;
    font-weight: 700;
}

.header h2 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

.header .subtitle {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.form-group {
    margin-bottom: 1.1rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #002366;
    margin-bottom: 0.35rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.label-row label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 0.8rem;
    color: #002366;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

select, .form-group input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fff;
    color: #333;
    outline: none;
    transition: all 0.2s ease-in-out;
}

select:focus, .form-group input:focus {
    border-color: #002366;
    box-shadow: 0 0 0 3px rgba(0, 35, 102, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 0.85rem;
    background-color: #002366;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: #FFD708;
    color: #002366;
}

.submit-btn:active {
    transform: scale(0.99);
}

.card-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.card-footer p {
    font-size: 0.9rem;
    color: #555;
}

.signup-link {
    color: #002366;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: #003580;
    text-decoration: underline;
}

/* Flash Messages */
#flash-messages {
    margin-bottom: 1rem;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.alert-danger, .alert-error {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border: 1px solid #b6effb;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }

    .header h1 span {
        font-size: 1.3rem;
    }
}
