/**
 * login.css
 * ----------
 * Styling just for login.php. Kept in its own file (rather than mixed
 * into app-overrides.css) since it's a fairly different, custom-built
 * layout that only that one page uses.
 *
 * Colors are picked to match the app's maroon primary theme
 * (#002569 / #001433 - see app-overrides.css for where the rest of
 * the app's blue-to-maroon override lives) so the login page feels
 * like part of the same app rather than a bolted-on design.
 */

body.login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00081a 0%, #001233 55%, #001433 100%);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

/* ---- The sign-in form (only panel now - the decorative right side was removed) ---- */
.login-left {
    padding: 2.75rem 3rem;
    display: flex;
    flex-direction: column;
}

.login-logo-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #002569, #001433);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 .5rem 1rem rgba(94, 18, 32, 0.4);
}

.login-title {
    text-align: center;
    color: #002569;
    font-weight: 800;
    letter-spacing: .05rem;
    margin: 0;
    font-size: 1.6rem;
}

.login-subtitle {
    text-align: center;
    color: #858796;
    margin: .15rem 0 1.5rem;
    font-size: .9rem;
}

.login-info-box {
    display: flex;
    gap: .75rem;
    background: #e9eefa;
    border-left: 4px solid #002569;
    border-radius: .5rem;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
}

.login-info-box i {
    color: #002569;
    margin-top: .2rem;
}

.login-info-box strong {
    display: block;
    color: #001433;
    font-size: .9rem;
    margin-bottom: .15rem;
}

.login-info-box p {
    margin: 0;
    font-size: .82rem;
    color: #5a6c91;
    line-height: 1.35;
}

.login-form label {
    font-weight: 700;
    font-size: .85rem;
    color: #3a3b45;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .35rem;
}

.login-form label i {
    color: #002569;
    width: 1rem;
    text-align: center;
}

.login-form .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: .95rem;
    border-radius: .5rem;
    padding: .65rem .9rem;
    margin-bottom: 1.1rem;
    border: 1px solid #d1d3e2;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #002569;
    box-shadow: 0 0 0 .2rem rgba(140, 28, 43, .15);
}

.password-field-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 1.1rem;
}

.password-field-wrap .form-control {
    margin-bottom: 0;
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: .9rem;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #b7b9cc;
    background: none;
    border: none;
    padding: 0;
}

.password-toggle:hover {
    color: #858796;
}

.login-btn {
    width: 100%;
    border: none;
    border-radius: .5rem;
    padding: .8rem 1rem;
    font-weight: 800;
    letter-spacing: .05rem;
    color: #fff;
    background: linear-gradient(90deg, #001433, #002569 60%, #3a6bcf);
    box-shadow: 0 .4rem 1rem rgba(140, 28, 43, .35);
    transition: opacity .15s ease-in-out;
}

.login-btn:hover {
    opacity: .92;
    color: #fff;
}

.login-footnote {
    text-align: center;
    color: #b7b9cc;
    font-size: .78rem;
    margin: .2rem 0;
}

.login-footnote i {
    margin-right: .3rem;
}

@media (max-width: 767.98px) {
    .login-left {
        padding: 2rem 1.5rem;
    }
}
