html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #010305, #003366);
    color: #fff;
}

/* Wrapper ensures full viewport height and perfect center alignment */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* ✅ key change */
    width: 100%;
    box-sizing: border-box;
}

/* The card */
.login-container {
    background: #ffffff;
    color: #003366;
    width: 380px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.login-header {
    background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem 1.5rem 1rem;
}

.login-header h2 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.login-subtext {
    font-size: 0.9rem;
    margin-top: 0.2rem;
    color: #f5f5f5;
}

/* Form area */
.login-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

input[type="email"],
input[type="password"] {
    width: 90%;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #ccd2e0;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    background-color: #f8faff;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.btn-login {
    background-color: #003366;
    color: #fff;
    border: none;
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.btn-login:hover {
    background-color: #002b59;
}

.footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-top: 1rem;
}

.footer-text span {
    color: #003366;
    font-weight: 600;
}

.summary {
    background-color: rgba(255, 0, 0, 0.05);
    color: #cc0000;
    border: 1px solid rgba(204, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.2rem;
}
.summary ul {
    list-style: none;
    padding: 0;
}
.summary li {
    text-align: center;
}
@media (max-width: 420px) {
    .login-container {
        width: 90%;
    }
}