/* Shared MHTrack platform branding accents. */
html {
    min-height: 100%;
}

body {
    display: flex;
    margin: 0;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.portal-main {
    min-height: auto;
}

.mhtrack-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #64748b;
    font-size: 0.875rem;
    padding: 1rem 0;
}

.mhtrack-footer-inner {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    min-height: 3.5rem;
}

.mhtrack-footer-label {
    white-space: nowrap;
}

.mhtrack-footer-logo {
    display: block;
    height: 3rem;
    max-width: 14rem;
    object-fit: contain;
    width: auto;
}

.mhtrack-footer-console {
    background: #0f172a;
    border-top: 0;
    color: rgba(255, 255, 255, 0.72);
}

.mhtrack-footer-console .mhtrack-footer-inner {
    justify-content: space-between;
}

.mhtrack-footer-logo-white {
    height: 3.25rem;
    max-width: 15rem;
}

.mhtrack-footer-console-copy {
    font-size: 0.82rem;
    text-align: right;
}

@media (max-width: 575.98px) {
    .mhtrack-footer-inner,
    .mhtrack-footer-console .mhtrack-footer-inner {
        flex-direction: column;
        gap: 0.45rem;
        justify-content: center;
        text-align: center;
    }

    .mhtrack-footer-console-copy {
        text-align: center;
    }
}

.console-auth-body {
    background: #121314;
}

.console-auth-main {
    align-items: center;
    background: #121314;
    display: flex;
    justify-content: center;
    padding-bottom: 2rem !important;
    padding-top: 2rem !important;
}

.console-login,
.console-login *,
.console-login *::before,
.console-login *::after {
    box-sizing: border-box;
}

.console-login {
    align-items: center;
    background: #121314;
    display: flex;
    justify-content: center;
    min-height: 0;
    padding: 0;
}

.console-login-panel {
    background: #121314;
    border: 1px solid rgba(228, 228, 225, 0.16);
    border-radius: 0.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    max-width: 31rem;
    overflow: hidden;
    width: min(100% - 2rem, 31rem);
}

.console-login-brand {
    align-items: center;
    background: #003f7b;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 2.25rem 2rem 1.75rem;
    position: relative;
    text-align: center;
}

.console-login-brand::after {
    background: #fed800;
    bottom: 0;
    content: '';
    height: 0.25rem;
    left: 0;
    position: absolute;
    right: 0;
}

.console-login-logo {
    display: block;
    height: auto;
    max-width: 21rem;
    object-fit: contain;
    width: 100%;
}

.console-login-eyebrow {
    color: #e4e4e1;
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.console-login-body {
    background: #121314;
    padding: 2.25rem 2.5rem 2.5rem;
}

.console-login h1 {
    color: #e4e4e1;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.console-login-copy {
    border-left: 0.25rem solid #2a8e27;
    color: rgba(228, 228, 225, 0.78);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.75rem;
    padding-left: 0.9rem;
}

.console-login-form {
    display: grid;
    gap: 1rem;
}

.console-login-field {
    display: grid;
    gap: 0.45rem;
}

.console-login-field label {
    color: #e4e4e1;
    font-size: 0.9rem;
    font-weight: 700;
}

.console-login-input {
    appearance: none;
    background: #1c1e20;
    border: 1px solid rgba(228, 228, 225, 0.28);
    border-radius: 0.375rem;
    color: #e4e4e1;
    font: inherit;
    min-height: 2.85rem;
    padding: 0.7rem 0.85rem;
    width: 100%;
}

.console-login-form button {
    width: 100%;
}

.console-login-input:focus {
    border-color: #fed800;
    box-shadow: 0 0 0 3px rgba(254, 216, 0, 0.18);
    outline: 0;
}

.console-login-button {
    background: #003f7b;
    border: 1px solid rgba(228, 228, 225, 0.16);
    border-radius: 0.375rem;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 2.9rem;
    padding: 0.75rem 1rem;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.console-login-button:hover,
.console-login-button:focus {
    background: #0a4f95;
    border-color: rgba(254, 216, 0, 0.55);
}

.console-login-note {
    color: rgba(228, 228, 225, 0.62);
    font-size: 0.82rem;
    margin: 1.25rem 0 0;
    text-align: center;
}



.console-login .message,
.console-auth-main .message {
    background: rgba(254, 216, 0, 0.12);
    border: 1px solid #fed800;
    border-radius: 0.375rem;
    color: #e4e4e1;
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
}

.console-login .message.error,
.console-auth-main .message.error {
    background: rgba(194, 65, 45, 0.2);
    border-color: rgba(255, 139, 119, 0.72);
    color: #ffe5de;
}

.console-login .message.success,
.console-auth-main .message.success {
    background: rgba(42, 142, 39, 0.18);
    border-color: rgba(78, 181, 73, 0.72);
    color: #dcf7db;
}

.console-shell-body {
    background: #f5f7fa;
    color: #172033;
}

.console-shell-header {
    background: #121314;
    border-bottom: 4px solid #fed800;
    color: #e4e4e1;
    flex-shrink: 0;
}

.console-shell-header-inner {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1120px;
    padding: 0.85rem 1.25rem;
}

.console-shell-brand {
    align-items: center;
    color: #e4e4e1;
    display: flex;
    flex: 0 0 auto;
    font-weight: 700;
    gap: 0.75rem;
    text-decoration: none;
}

.console-shell-brand:hover,
.console-shell-brand:focus {
    color: #ffffff;
    text-decoration: none;
}

.console-shell-logo {
    display: block;
    height: 2.4rem;
    max-width: 11rem;
    object-fit: contain;
    width: auto;
}

.console-shell-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.console-shell-nav-link {
    border: 1px solid rgba(228, 228, 225, 0.16);
    border-radius: 0.375rem;
    color: rgba(228, 228, 225, 0.78);
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
}

.console-shell-nav-link:hover,
.console-shell-nav-link:focus {
    border-color: rgba(254, 216, 0, 0.55);
    color: #ffffff;
    text-decoration: none;
}

.console-shell-nav-link.is-active {
    background: #003f7b;
    border-color: #003f7b;
    color: #ffffff;
}

.console-shell-nav-link.is-disabled {
    cursor: default;
    opacity: 0.55;
}

.console-shell-account {
    align-items: center;
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.console-shell-account-user {
    color: rgba(228, 228, 225, 0.86);
    font-size: 0.88rem;
}

.console-shell-account-role {
    color: #fed800;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.console-shell-logout {
    border: 1px solid rgba(228, 228, 225, 0.22);
    border-radius: 0.375rem;
    color: #e4e4e1;
    font-size: 0.86rem;
    padding: 0.5rem 0.7rem;
    text-decoration: none;
}

.console-shell-logout:hover,
.console-shell-logout:focus {
    border-color: rgba(254, 216, 0, 0.55);
    color: #ffffff;
    text-decoration: none;
}

.console-shell-main {
    max-width: 1120px;
    width: 100%;
}

.console-shell-main .message {
    background: #fff8cc;
    border: 1px solid #fed800;
    border-radius: 0.375rem;
    color: #4f3f00;
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
}

.console-shell-main .message.error {
    background: #fff0ec;
    border-color: rgba(194, 65, 45, 0.35);
    color: #842617;
}

.console-shell-main .message.success {
    background: #eefbea;
    border-color: rgba(42, 142, 39, 0.35);
    color: #1f5d1f;
}

.console-dashboard {
    display: grid;
    gap: 1.25rem;
}

.console-dashboard-head {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(0, 63, 123, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: 1.5rem;
}

.console-dashboard-kicker {
    color: #2a8e27;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}

.console-dashboard h1 {
    color: #003f7b;
    font-size: 2rem;
    line-height: 1.15;
    margin: 0 0 0.6rem;
}

.console-dashboard-copy {
    color: #475569;
    line-height: 1.55;
    margin: 0;
    max-width: 48rem;
}

.console-dashboard-primary {
    background: #003f7b;
    border-radius: 0.375rem;
    color: #ffffff;
    flex: 0 0 auto;
    font-weight: 700;
    padding: 0.7rem 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.console-dashboard-primary:hover,
.console-dashboard-primary:focus {
    background: #0a4f95;
    color: #ffffff;
    text-decoration: none;
}

.console-dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.console-dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(0, 63, 123, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 13rem;
    padding: 1.25rem;
}

.console-dashboard-card-label {
    color: #2a8e27;
    font-size: 0.76rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
}

.console-dashboard-card h2 {
    color: #172033;
    font-size: 1.15rem;
    margin: 0 0 0.65rem;
}

.console-dashboard-card p {
    color: #526176;
    line-height: 1.5;
    margin: 0 0 1.1rem;
}

.console-dashboard-status {
    align-self: flex-start;
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: auto;
    padding: 0.35rem 0.65rem;
}

.console-dashboard-status.is-ready {
    background: rgba(42, 142, 39, 0.12);
    color: #1f6d1d;
}

@media (max-width: 860px) {
    .console-shell-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .console-shell-nav {
        justify-content: flex-start;
    }

    .console-shell-account {
        justify-content: flex-start;
    }

    .console-dashboard-head {
        flex-direction: column;
    }

    .console-dashboard-primary {
        text-align: center;
        width: 100%;
    }

    .console-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .console-shell-logo {
        max-width: 9rem;
    }

    .console-dashboard-head,
    .console-dashboard-card {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .console-dashboard h1 {
        font-size: 1.65rem;
    }
}

@media (max-width: 575.98px) {
    .console-login {
        padding: 1rem 0;
    }

    .console-login-panel {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        box-shadow: none;
    }

    .console-login-brand {
        padding: 2rem 1.25rem 1.5rem;
    }

    .console-login-body {
        padding: 2rem 1.25rem;
    }
}
