html body.blank-page .content.app-content {
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background: #edf2ef;
}

html body.blank-page .content-wrapper,
html body.blank-page .content-body {
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

.mt-login-wrap {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
    background: #edf2ef;
    font-family: 'Montserrat', 'Source Sans Pro', sans-serif;
}

.mt-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(390px, 0.85fr);
    width: min(1480px, 100%);
    min-height: min(820px, calc(100vh - 48px));
    margin: auto;
    overflow: hidden;
    border: 1px solid #dce5e1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(19, 48, 43, 0.15);
}

.mt-login-brand {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    color: #f4fbf8;
    background-color: #173b3b;
    background-image: linear-gradient(135deg, #183538 0%, #174b47 58%, #0d5c52 100%);
}

.mt-login-brand::after {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, transparent 0 13px, rgba(226, 255, 244, 0.035) 13px 14px);
    content: '';
    pointer-events: none;
}

.mt-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 34px;
    width: 100%;
    padding: 38px 44px 28px;
}

.mt-brand-header,
.mt-brand-info,
.mt-brand-footer,
.mt-brand-footer span {
    display: flex;
    align-items: center;
}

.mt-brand-header,
.mt-brand-footer {
    justify-content: space-between;
    gap: 18px;
}

.mt-brand-info {
    min-width: 0;
    gap: 13px;
}

.mt-brand-chip {
    display: grid;
    flex: 0 0 132px;
    width: 132px;
    height: 60px;
    padding: 6px 10px;
    place-items: center;
    border: 1px solid #dce8e2;
    border-radius: 8px;
    background: #fff;
}

.mt-brand-chip img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 100%;
    object-fit: contain;
}

.mt-brand-info h1,
.mt-brand-info p,
.mt-brand-copy h2,
.mt-brand-copy p,
.mt-brand-footer p {
    margin: 0;
}

.mt-brand-info h1 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.mt-brand-info p {
    margin-top: 3px;
    color: #bdd5ce;
    font-size: 0.76rem;
}

.mt-secure-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(220, 245, 234, 0.24);
    border-radius: 999px;
    color: #e0f2eb;
    background: rgba(11, 34, 34, 0.28);
    font-size: 0.72rem;
    font-weight: 600;
}

.mt-secure-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #79d3a6;
}

.mt-brand-copy {
    max-width: 680px;
    margin-top: auto;
}

.mt-eyebrow,
.mt-login-kicker {
    color: #a8d7c4;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.mt-eyebrow {
    margin: 0 0 12px;
}

.mt-brand-copy h2 {
    max-width: 650px;
    color: #fff;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.16;
}

.mt-brand-copy > p:last-child {
    max-width: 620px;
    margin-top: 13px;
    color: #d0e0da;
    font-size: 0.98rem;
    line-height: 1.6;
}

.mt-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mt-module-item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(224, 247, 238, 0.16);
    border-radius: 10px;
    background: rgba(8, 34, 34, 0.25);
}

.mt-module-icon {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(194, 236, 217, 0.32);
    border-radius: 9px;
    color: #d8f4e5;
    background: rgba(117, 191, 157, 0.13);
}

.mt-module-icon svg {
    width: 17px;
    height: 17px;
}

.mt-module-item strong,
.mt-module-item small {
    display: block;
}

.mt-module-item strong {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.mt-module-item small {
    margin-top: 3px;
    color: #c1d8d0;
    font-size: 0.71rem;
    line-height: 1.35;
}

.mt-brand-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(224, 247, 238, 0.18);
    color: #c5d9d2;
    font-size: 0.75rem;
}

.mt-brand-footer span {
    gap: 7px;
}

.mt-brand-footer svg {
    width: 14px;
    height: 14px;
    color: #a8d7c4;
}

.mt-login-panel {
    display: grid;
    min-width: 0;
    padding: 48px 42px;
    place-items: center;
    background: #fff;
}

.mt-login-card {
    width: min(410px, 100%);
}

.mt-login-logo {
    display: flex;
    min-height: 72px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
}

.mt-login-logo img {
    display: block;
    width: auto;
    max-width: 240px;
    height: 58px;
    object-fit: contain;
    object-position: center;
}

.mt-login-kicker {
    margin: 0 0 8px;
    color: #16806a;
    font-size: 0.68rem;
}

.mt-login-card h2 {
    margin: 0;
    color: #172c2b;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.mt-login-intro {
    margin: 7px 0 27px;
    color: #637572;
    font-size: 0.93rem;
}

.mt-login-form .mt-field {
    margin-bottom: 17px;
}

.mt-login-form .form-label {
    display: block;
    margin-bottom: 7px;
    color: #263b38;
    font-size: 0.84rem;
    font-weight: 600;
}

.mt-login-form .input-group {
    min-height: 48px;
    overflow: hidden;
    border: 1px solid #cbd8d3;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mt-login-form .input-group:focus-within {
    border-color: #16806a;
    box-shadow: 0 0 0 3px rgba(22, 128, 106, 0.13);
}

.mt-login-form .input-group-text {
    padding: 0 13px;
    border: 0;
    color: #55736b;
    background: #f5f8f6;
}

.mt-login-form .input-group-text svg {
    width: 17px;
    height: 17px;
}

.mt-login-form .form-control {
    min-height: 46px;
    padding: 0 12px;
    border: 0 !important;
    color: #19312c;
    font-size: 0.92rem;
    box-shadow: none !important;
}

.mt-login-form .form-control::placeholder {
    color: #9aa9a3;
}

.mt-login-form .form-control.is-invalid {
    background-image: none;
}

.mt-login-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mt-login-form .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    border-color: #96aaa2;
}

.mt-login-form .form-check-input:checked {
    border-color: #16806a;
    background-color: #16806a;
}

.mt-login-form .form-check-label {
    color: #4f635e;
    font-size: 0.82rem;
}

.mt-login-form #btn_submit {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #176f5f !important;
    background-image: none !important;
    font-size: 0.94rem;
    font-weight: 700;
    transition: background 0.18s ease, transform 0.18s ease;
}

.mt-login-form #btn_submit:hover:not(:disabled) {
    background: #105b4d !important;
    background-image: none !important;
    transform: translateY(-1px);
}

.mt-login-form #btn_submit:disabled {
    cursor: wait;
    opacity: 0.8;
}

.mt-login-error:not(.d-none) {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #f2c7c4;
    border-radius: 7px;
    color: #8c312c;
    background: #fff4f2;
    font-size: 0.84rem;
}

.mt-login-card.is-shaking {
    animation: mt-login-shake 0.4s ease;
}

.mt-login-help {
    margin: 22px 0 0;
    color: #7a8984;
    font-size: 0.78rem;
    text-align: center;
}

@keyframes mt-login-shake {
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@media (max-width: 1099.98px) {
    .mt-login-wrap {
        padding: 16px;
    }

    .mt-login-shell {
        display: block;
        width: min(480px, 100%);
        min-height: 0;
        border-radius: 16px;
    }

    .mt-login-brand {
        display: none;
    }

    .mt-login-panel {
        padding: 38px 32px;
    }
}

@media (max-width: 575.98px) {
    .mt-login-wrap {
        min-height: 100vh;
        padding: 12px;
    }

    .mt-login-panel {
        padding: 30px 22px;
    }

    .mt-login-logo {
        min-height: 58px;
        margin-bottom: 24px;
    }

    .mt-login-logo img {
        height: 48px;
        max-width: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mt-login-card.is-shaking,
    .mt-login-form #btn_submit {
        animation: none;
        transition: none;
    }
}
