/* Public login page — WFP / VWB-inspired layout */

html.login-html,
html.login-html body.login-page {
    height: 100%;
    margin: 0;
    font-family: 'SolaimanLipi', 'Nikosh', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(160deg, #e8f1f8 0%, #f4f7fb 45%, #eef2f6 100%) !important;
    color: #1a2b3c;
}

.login-page .login-page-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Override global .footer { position:absolute } */
.login-page .footer.public-footer,
.login-page .public-footer {
    position: static;
    flex-shrink: 0;
    width: 100%;
    height: auto;
    line-height: normal;
    margin-top: auto;
}

.login-page .content-wrapper.container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: transparent !important;
    min-height: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
}

.login-page .login-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 16px 16px 32px;
    gap: 20px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 60, 120, 0.12);
    border: 1px solid rgba(0, 94, 184, 0.08);
    padding: 34px 28px 28px;
    position: relative;
    transform: none;
    margin: 0 auto;
}

.login-card__brand {
    text-align: center;
    margin-bottom: 26px;
}

.login-card__logo-oval {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 290px;
    height: 180px;
    margin: 0 auto 18px;
    padding: 6px 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #f0f5fb;
    box-shadow: 0 6px 18px rgba(0, 60, 120, 0.10), inset 0 0 0 1px rgba(0, 94, 184, 0.06);
    overflow: hidden;
}

.login-card__logo {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1.45);
    transform-origin: center;
    object-fit: contain;
}

.login-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #003d7a;
    margin: 0;
    text-align: center;
}

.login-form-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

.login-page .form-group {
    margin-bottom: 16px;
}

.login-page .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.login-page .form-group label .fa {
    color: #005eb8;
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

.login-page .form-control {
    border-radius: 8px !important;
    padding: 12px 14px;
    font-size: 15px;
    height: auto;
    border: 1px solid #c8d6e3;
    background: #fafcfe;
    box-shadow: none;
}

.login-page .form-control:focus {
    border-color: #005eb8;
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.15);
    background: #fff;
}

.login-page .btn-login-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px !important;
    border: none;
    background: #005eb8;
    color: #fff;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
}

.login-page .btn-login-submit:hover,
.login-page .btn-login-submit:focus {
    background: #004a94;
    transform: translateY(-1px);
    color: #fff;
}

.login-page .btn-login-submit:disabled {
    opacity: 0.65;
    transform: none;
    cursor: not-allowed;
}

.login-page .alert {
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.login-page .message {
    padding: 10px 12px;
    text-align: center;
    margin-bottom: 16px;
    color: #842029;
    background-color: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c2c7;
}

.login-page .form-group span.error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .login-page .login-main {
        justify-content: flex-start;
        padding-top: 12px;
        padding-bottom: 24px;
    }

    .login-card {
        padding: 24px 18px 20px;
        transform: none;
    }

    .login-card__logo-oval {
        width: 250px;
        height: 160px;
        padding: 6px 10px;
        margin-bottom: 16px;
    }

    .login-card__title {
        font-size: 20px;
    }
}
