.login-portal-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.login-portal-options legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    font-weight: 800;
}

.login-portal-options label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #cdd8e7;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
}

.login-portal-options input {
    width: auto;
    margin: 0;
    accent-color: var(--orange);
}

.login-form > form {
    display: grid;
    gap: 20px;
}

.auth-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: #f4f7fb;
}

.auth-mode-switch a {
    padding: 9px 12px;
    border-radius: 8px;
    color: #65748b;
    text-align: center;
    font-weight: 800;
}

.auth-mode-switch a.is-active {
    background: #ffffff;
    color: #08285a;
    box-shadow: 0 3px 10px rgba(21, 43, 78, .08);
}

.login-form label > small {
    color: #65748b;
    font-size: 12px;
    font-weight: 400;
}

.optional-label {
    color: #65748b;
    font-size: 12px;
    font-weight: 400;
}

.secondary-button.full {
    width: 100%;
}

.verification-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
}

.verification-code-button {
    min-height: 46px;
    padding: 0 12px;
    white-space: nowrap;
}

.verification-code-button:disabled {
    cursor: wait;
    opacity: .62;
}

.human-verification-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(6, 24, 50, .58);
}

.human-verification-dialog {
    position: relative;
    width: min(360px, 100%);
    padding: 22px;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(4, 24, 54, .28);
}

.human-verification-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #66758b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.human-verification-heading {
    padding-right: 28px;
}

.human-verification-heading h2 {
    margin: 0;
    color: #0a2d5e;
    font-size: 20px;
}

.human-verification-heading p {
    margin: 6px 0 16px;
    color: #65748b;
    font-size: 14px;
}

.human-puzzle-stage {
    position: relative;
    width: 300px;
    max-width: 100%;
    aspect-ratio: 2 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #dce7f2;
}

.human-puzzle-background {
    display: block;
    width: 100%;
    height: 100%;
}

.human-puzzle-piece {
    position: absolute;
    left: 0;
    filter: drop-shadow(0 3px 4px rgba(3, 20, 43, .38));
    pointer-events: none;
    will-change: transform;
}

.human-puzzle-slider {
    position: relative;
    width: 300px;
    max-width: 100%;
    height: 46px;
    margin: 14px auto 0;
    overflow: hidden;
    border: 1px solid #d5dfeb;
    border-radius: 9px;
    background: #f4f7fb;
    color: #7a8798;
    font-size: 13px;
    line-height: 44px;
    text-align: center;
    user-select: none;
}

.human-puzzle-slider-progress {
    position: absolute;
    inset: 0 auto 0 0;
    width: 23px;
    background: #e7f2ec;
}

.human-puzzle-slider-handle {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #c7d5e5;
    border-radius: 8px;
    background: #fff;
    color: #0a2d5e;
    font-size: 20px;
    cursor: grab;
    touch-action: none;
    will-change: transform;
}

.human-puzzle-slider.is-dragging .human-puzzle-slider-handle {
    cursor: grabbing;
}

.human-puzzle-slider-handle:focus-visible {
    outline: 3px solid rgba(209, 111, 39, .28);
    outline-offset: -3px;
}

.human-verification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.human-verification-message {
    margin: 0;
    color: #65748b;
    font-size: 13px;
}

.human-verification-refresh {
    flex: 0 0 auto;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #b85d20;
    cursor: pointer;
}

.human-verification-modal.is-verified .human-puzzle-slider-progress {
    background: #dff3e6;
}

.human-verification-modal.is-verified .human-verification-message {
    color: #267343;
}

.password-help {
    margin: -10px 0 0;
    text-align: right;
}

@media (max-width: 560px) {
    .verification-code-row {
        grid-template-columns: minmax(0, 1fr) 132px;
        gap: 8px;
    }

    .verification-code-button {
        font-size: 13px;
    }
}

/* Shared password-reset visibility controls. */
.password-field{position:relative;display:block}
.login-form .password-field input{padding-right:50px}
.password-field input::-ms-reveal{display:none}
.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:#65748b;cursor:pointer}
.password-toggle:hover{background:#f2f5fa;color:#0a2d5e}
.password-toggle:focus-visible{outline:2px solid #d18a44;outline-offset:1px}
.password-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.password-toggle .eye-slash{display:none}
.password-toggle[aria-pressed="true"] .eye-slash{display:block}