/* MF-04 | Login / Session UI */

.auth-pending #app-shell {
    visibility: hidden;
}

.auth-locked {
    overflow: hidden;
}

.auth-locked #app-shell {
    display: none;
}

.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    background: #f5f9fb;
}

.auth-gate[hidden] {
    display: none;
}

.auth-gate__card {
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(340px, 1.1fr);

    overflow: hidden;
    border: 1px solid #dbe6ec;
    border-radius: 20px;

    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 70, 92, 0.10);
}

.auth-gate__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 42px 34px;
    text-align: center;
    background: #eef7f9;
}

.auth-gate__brand img {
    width: min(250px, 82%);
    height: auto;
    object-fit: contain;
}

.auth-gate__line {
    width: 200px;
    height: 1px;
    margin: 12px auto 8px;
    background: #8bb4c3;
}

.auth-gate__tagline {
    color: #245d6d;
    font-size: 14px;
}

.auth-gate__form {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 44px 46px;
}

.auth-gate__form h1 {
    margin: 0;
    color: #145b70;
    font-size: 27px;
}

.auth-gate__form p {
    margin: 6px 0 22px;
    color: #64748b;
}

.auth-gate__identity {
    display: flex;
    flex-direction: column;
    gap: 3px;

    margin: 0 0 8px;
    padding: 12px 14px;

    border: 1px solid #d7e8ed;
    border-radius: 10px;

    background: #f3f9fa;
}

.auth-gate__identity[hidden] {
    display: none;
}

.auth-gate__identity strong {
    color: #145b70;
    font-size: 15px;
}

.auth-gate__identity span {
    color: #475569;
    font-size: 13px;
}

.auth-gate__identity small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.auth-gate__form label {
    margin: 12px 0 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.auth-gate__form input {
    width: 100%;
    padding: 11px 12px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #ffffff;
    font: inherit;
}

.auth-gate__form button {
    margin-top: 20px;
    padding: 11px 14px;

    border: 1px solid #1d7182;
    border-radius: 10px;

    background: #1d7182;
    color: #ffffff;

    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-gate__error {
    min-height: 20px;
    margin-top: 12px;
    color: #b91c1c;
    font-size: 13px;
}

@media (max-width: 760px) {
    .auth-gate__card {
        grid-template-columns: 1fr;
    }

    .auth-gate__brand {
        padding: 22px;
    }

    .auth-gate__brand img {
        width: 180px;
    }

    .auth-gate__form {
        padding: 28px 24px;
    }
}


/* DEV-6.24B | Shared Local / Demo / Employee login surfaces */
.auth-gate__mode-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px;
}

.auth-gate__mode-choice[hidden],
.auth-gate__google-panel[hidden],
.auth-gate__credentials[hidden] {
    display: none;
}

.auth-gate__mode-button {
    margin-top: 0 !important;
    border-color: #b7cbd3 !important;
    background: #ffffff !important;
    color: #245d6d !important;
}

.auth-gate__mode-button:hover,
.auth-gate__mode-button:focus-visible {
    border-color: #1d7182 !important;
    background: #f3f9fa !important;
}

.auth-gate__google-panel {
    display: block;
}

.auth-gate__google-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 2px !important;
    padding: 11px 14px !important;

    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
}

.auth-gate__google-button:hover,
.auth-gate__google-button:focus-visible {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
}

.auth-gate__google-mark {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #d7dee5;
    border-radius: 50%;
    background: #ffffff;
    color: #334155;
    font-weight: 800;
    line-height: 1;
}

.auth-gate__credentials {
    display: flex;
    flex-direction: column;
}
