* {
    box-sizing: border-box;
}

:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --baharimas-green: #12a63a;
    --baharimas-green-dark: #078431;
    --baharimas-green-soft: #e9f8ef;

    --baharimas-yellow: #f4d900;

    --baharimas-blue: #1757e8;
    --baharimas-blue-dark: #123ba3;
    --baharimas-blue-soft: #eaf1ff;

    --baharimas-navy: #071d36;
    --baharimas-navy-light: #0d3157;

    --surface: #ffffff;
    --page-background: #f4f8fc;
    --border: #dce5ee;
    --text: #10233f;
    --muted: #718096;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-width: 320px;
    background: var(--page-background);
    color: var(--text);
}

button,
input,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.auth-shell {
    position: relative;
    display: block;
    min-height: 100vh;
    overflow: hidden;
}

.auth-visual {
    position: absolute;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    inset: 0;
    min-height: 100vh;
    overflow: hidden;
    padding: 42px 52px 38px;
    background:
        url("/static/img/baharimas-vessel.svg")
        center center / cover
        no-repeat;
    color: #ffffff;
}

.auth-visual::before {
    position: absolute;
    z-index: -3;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            135deg,
            rgba(7, 29, 54, 0.12) 0%,
            rgba(7, 29, 54, 0.28) 45%,
            rgba(7, 29, 54, 0.72) 100%
        );
}

.auth-visual-overlay {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(4, 18, 35, 0.18) 0%,
            rgba(4, 18, 35, 0.08) 32%,
            rgba(4, 18, 35, 0.66) 100%
        );
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
}

.auth-brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22);
}

.auth-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 3px;
    border-radius: 50%;
    object-fit: contain;
}

.auth-brand-copy {
    display: grid;
    gap: 3px;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.42);
}

.auth-brand-copy strong {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.auth-brand-copy span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.auth-visual-content {
    width: min(470px, 40vw);
    margin-top: 44px;
    margin-bottom: auto;
}

.auth-eyebrow {
    margin: 0 0 15px;
    color: #79e29a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.auth-visual-content h1 {
    margin: 0;
    max-width: 470px;
    font-size: clamp(42px, 3.9vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-shadow:
        0 5px 28px rgba(0, 0, 0, 0.32);
}

.auth-visual-description {
    max-width: 540px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.75;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.34);
}

.auth-value-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 0;
}

.auth-value-list span {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(7, 29, 54, 0.36);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.auth-visual-footer {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.auth-workspace {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    width: min(520px, calc(100% - 80px));
    min-height: 100vh;
    margin-left: auto;
    overflow-y: auto;
    padding: 46px 56px 28px;
    background: transparent;
}

.auth-card {
    width: min(100%, 430px);
    margin: auto;
    padding: 34px 38px 30px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 30px 80px rgba(4, 18, 35, 0.28),
        0 8px 24px rgba(4, 18, 35, 0.12);
    backdrop-filter: blur(18px);
}

.auth-card-logo {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e2e9ef;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 12px 30px rgba(7, 29, 54, 0.12);
}

.auth-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 5px;
    border-radius: 50%;
    object-fit: contain;
}

.auth-panel {
    width: 100%;
}

.auth-heading {
    margin-bottom: 29px;
    text-align: center;
}

.auth-kicker {
    margin: 0 0 9px;
    color: var(--baharimas-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.auth-heading h2 {
    margin: 0;
    color: var(--baharimas-navy);
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.auth-heading > p:last-child {
    max-width: 360px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.auth-alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #f1c3c3;
    border-radius: 10px;
    background: #fff4f4;
    color: #a53a3a;
    font-size: 12px;
    line-height: 1.55;
}

.auth-alert.is-success {
    border-color: #a8dfb8;
    background: var(--baharimas-green-soft);
    color: var(--baharimas-green-dark);
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field > span {
    color: #425166;
    font-size: 12px;
    font-weight: 700;
}

.password-requirement {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.4;
    opacity: 0.72;
}


.auth-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    outline: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font-size: 13px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.auth-field input::placeholder {
    color: #a2adba;
}

.auth-field input:hover {
    border-color: #c8d4df;
}

.auth-field input:focus {
    border-color: var(--baharimas-blue);
    box-shadow:
        0 0 0 3px rgba(23, 87, 232, 0.1);
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 67px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 5px 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--baharimas-blue);
    font-size: 11px;
    font-weight: 700;
}

.password-toggle:hover {
    background: var(--baharimas-blue-soft);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: -2px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667488;
    font-size: 12px;
    cursor: pointer;
}

.remember-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--baharimas-green);
}

.auth-link {
    color: var(--baharimas-blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.auth-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-primary-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(
            90deg,
            var(--baharimas-green-dark),
            var(--baharimas-green)
        );
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow:
        0 10px 24px rgba(18, 166, 58, 0.18);
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        filter 150ms ease;
}

.auth-primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow:
        0 13px 28px rgba(18, 166, 58, 0.24);
}

.auth-primary-button:active {
    transform: translateY(0);
}

.auth-primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
}

.auth-switch-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--baharimas-blue);
    font-size: 12px;
    font-weight: 800;
}

.auth-switch-button:hover {
    text-decoration: underline;
}

.registration-note {
    margin: 15px 0 0;
    padding: 11px 13px;
    border: 1px solid #dcebdc;
    border-radius: 9px;
    background: #f5fbf6;
    color: #657566;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(100%, 430px);
    margin: 22px auto 0;
    padding: 0 4px;
    border-top: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.42);
}

#register-panel .auth-heading {
    margin-bottom: 22px;
}

.registration-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.registration-type-card {
    display: grid;
    min-height: 132px;
    padding: 20px 16px;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    text-align: left;
    box-shadow:
        0 8px 22px rgba(7, 29, 54, 0.06);
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}

.registration-type-card:hover {
    transform: translateY(-2px);
    border-color: var(--baharimas-blue);
    background: var(--baharimas-blue-soft);
    box-shadow:
        0 12px 28px rgba(7, 29, 54, 0.11);
}

.registration-type-card:focus-visible {
    outline: none;
    border-color: var(--baharimas-blue);
    box-shadow:
        0 0 0 3px rgba(23, 87, 232, 0.12);
}

.registration-type-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 2px;
    border-radius: 12px;
    background: var(--baharimas-blue-soft);
    color: var(--baharimas-blue);
}

.registration-type-icon svg {
    width: 24px;
    height: 24px;
}

.registration-type-title {
    color: var(--baharimas-navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.registration-type-description {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

#register-form-view {
    width: 100%;
}

#register-panel .auth-form {
    gap: 14px;
}

#register-office-fields:not([hidden]),
#register-crew-fields:not([hidden]) {
    display: grid;
    gap: 14px;
}

#register-panel .auth-field input,
#register-panel .auth-field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    outline: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font-size: 13px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

#register-panel .auth-field select:hover {
    border-color: #c8d4df;
}

#register-panel .auth-field select:focus {
    border-color: var(--baharimas-blue);
    box-shadow:
        0 0 0 3px rgba(23, 87, 232, 0.1);
}

#register-panel .auth-field select.is-expanded {
    height: auto;
    min-height: 44px;
    overflow-y: auto;
}

#register-panel .auth-primary-button {
    min-height: 47px;
}

@media (max-width: 1080px) {
    .auth-visual {
        padding:
            34px
            34px
            32px;
    }

    .auth-visual-content {
        width: min(500px, 46vw);
    }

    .auth-visual-content h1 {
        font-size: 48px;
    }

    .auth-workspace {
        width: min(500px, calc(100% - 52px));
        padding:
            34px
            38px
            24px;
    }
}

@media (max-width: 820px) {
    .auth-shell {
        display: block;
        min-height: 100vh;
        overflow: visible;
    }

    .auth-visual {
        min-height: 330px;
        padding:
            26px
            26px
            28px;
        background-position:
            center 42%;
    }

    .auth-visual-content {
        width: 100%;
        margin-top: 78px;
        margin-bottom: 28px;
    }

    .auth-visual-content h1 {
        font-size: 39px;
    }

    .auth-visual-description {
        margin-top: 16px;
        font-size: 13px;
    }

    .auth-value-list {
        margin-top: 17px;
    }

    .auth-workspace {
        min-height: auto;
        overflow: visible;
        padding:
            42px
            26px
            24px;
    }

    .auth-card {
        width: min(100%, 500px);
    }
}

@media (max-width: 520px) {
    .auth-visual {
        min-height: 300px;
        padding:
            22px
            20px
            24px;
    }

    .auth-brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .auth-brand-copy strong {
        font-size: 14px;
    }

    .auth-brand-copy span {
        font-size: 10px;
    }

    .auth-visual-content {
        margin-top: 58px;
    }

    .auth-eyebrow {
        font-size: 9px;
    }

    .auth-visual-content h1 {
        font-size: 34px;
    }

    .auth-visual-description {
        display: none;
    }

    .auth-value-list span {
        padding: 6px 9px;
        font-size: 9px;
    }

    .auth-visual-footer {
        display: none;
    }

    .auth-workspace {
        padding:
            34px
            20px
            22px;
    }

    .auth-card-logo {
        width: 68px;
        height: 68px;
        margin-bottom: 20px;
    }

    .auth-heading h2 {
        font-size: 30px;
    }

    .auth-field-grid {
        grid-template-columns: 1fr;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-footer {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* UI-2C ACCOUNT STATUS EXPERIENCE */

.auth-status-panel {
    width: 100%;
    text-align: center;
    animation:
        auth-status-enter
        220ms
        ease-out;
}

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

.auth-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin:
        4px
        auto
        22px;
    border-radius: 50%;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.auth-status-icon--success {
    color: #147a4a;
    background:
        rgba(31, 160, 101, 0.12);
    border:
        1px solid
        rgba(31, 160, 101, 0.24);
}

.auth-status-icon--danger {
    color: #b42318;
    background:
        rgba(217, 45, 32, 0.09);
    border:
        1px solid
        rgba(217, 45, 32, 0.18);
}

.auth-status-kicker {
    margin:
        0
        0
        10px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.auth-status-panel h2 {
    margin: 0;
    color: #0f2747;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.auth-status-description {
    max-width: 390px;
    margin:
        14px
        auto
        0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.auth-status-reason {
    margin:
        24px
        0
        0;
    padding:
        16px
        18px;
    border:
        1px solid
        rgba(180, 35, 24, 0.14);
    border-radius: 12px;
    background:
        rgba(217, 45, 32, 0.045);
    text-align: left;
}

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

.auth-status-reason > span {
    display: block;
    margin-bottom: 7px;
    color: #8f2018;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-status-reason p {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.auth-status-back {
    width: 100%;
    margin-top: 26px;
}

@keyframes auth-status-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .auth-status-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
        font-size: 34px;
    }

    .auth-status-panel h2 {
        font-size: 27px;
    }

    .auth-status-reason {
        padding:
            14px
            15px;
    }
}
/* UI-2C CENTERED STATUS MODAL */

.auth-status-panel:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    width: auto;
    min-height: 100vh;
    padding: 32px;

    text-align: center;

    background:
        rgba(5, 23, 44, 0.66);

    backdrop-filter:
        blur(2px);

    -webkit-backdrop-filter:
        blur(2px);
}

.auth-status-panel:not([hidden])::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: min(
        calc(100vw - 48px),
        560px
    );

    height: min(
        calc(100vh - 64px),
        610px
    );

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(255, 255, 255, 0.72);

    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.98);

    box-shadow:
        0 30px 80px
        rgba(3, 20, 39, 0.32);

    z-index: -1;
}

.auth-status-panel:not([hidden])
.auth-status-icon {
    margin:
        54px
        auto
        22px;
}

.auth-status-panel:not([hidden])
.auth-status-kicker {
    width: min(
        calc(100vw - 96px),
        450px
    );

    margin:
        0
        auto
        12px;

    text-align: center;
}

.auth-status-panel:not([hidden])
h2 {
    width: min(
        calc(100vw - 96px),
        450px
    );

    margin:
        0
        auto;

    text-align: center;
}

.auth-status-panel:not([hidden])
.auth-status-description {
    width: min(
        calc(100vw - 96px),
        430px
    );

    margin:
        18px
        auto
        0;

    text-align: center;
}

.auth-status-panel:not([hidden])
.auth-status-reason {
    width: min(
        calc(100vw - 96px),
        430px
    );

    margin:
        22px
        auto
        0;
}

.auth-status-panel:not([hidden])
.auth-status-back {
    width: min(
        calc(100vw - 96px),
        450px
    );

    margin:
        28px
        auto
        54px;
}

.auth-status-icon--success
~ .auth-status-kicker
~ .auth-status-panel-title {
    color: #079447;
}

.auth-status-panel:has(
    .auth-status-icon--success
)
#account-status-title {
    color: #079447;
}

.auth-status-panel:has(
    .auth-status-icon--success
)
.auth-status-kicker {
    color: #667085;
}

.auth-status-panel:has(
    .auth-status-icon--danger
)
#account-status-title {
    color: #b42318;
}

.auth-status-panel:not([hidden])
.auth-status-icon {
    width: 82px;
    height: 82px;

    border-width: 1px;

    font-size: 44px;

    box-shadow:
        0 0 0 12px
        rgba(31, 160, 101, 0.06);
}

.auth-status-panel:not([hidden])
.auth-status-icon--danger {
    box-shadow:
        0 0 0 12px
        rgba(217, 45, 32, 0.05);
}

.auth-status-panel:not([hidden])
#account-status-title {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.auth-status-panel:not([hidden])
.auth-status-description {
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .auth-status-panel:not([hidden]) {
        padding: 20px;
    }

    .auth-status-panel:not([hidden])::before {
        width:
            calc(100vw - 32px);

        height:
            min(
                calc(100vh - 40px),
                590px
            );

        border-radius: 20px;
    }

    .auth-status-panel:not([hidden])
    .auth-status-icon {
        width: 72px;
        height: 72px;

        margin-top: 42px;

        font-size: 38px;
    }

    .auth-status-panel:not([hidden])
    .auth-status-kicker,
    .auth-status-panel:not([hidden])
    h2,
    .auth-status-panel:not([hidden])
    .auth-status-description,
    .auth-status-panel:not([hidden])
    .auth-status-reason,
    .auth-status-panel:not([hidden])
    .auth-status-back {
        width:
            calc(100vw - 72px);
    }

    .auth-status-panel:not([hidden])
    #account-status-title {
        font-size: 28px;
    }

    .auth-status-panel:not([hidden])
    .auth-status-back {
        margin-bottom: 42px;
    }
}

/* UI-2C VIEWPORT OWNED STATUS MODAL */

body > .auth-status-panel:not([hidden]) {
    position: fixed;
    inset: 0;

    z-index: 9999;

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

    box-sizing: border-box;

    width: 100vw;
    height: 100vh;
    min-height: 0;

    padding: 24px;

    overflow-y: auto;
    overflow-x: hidden;

    background:
        rgba(4, 20, 39, 0.72);

    backdrop-filter:
        blur(2px);

    -webkit-backdrop-filter:
        blur(2px);
}

body > .auth-status-panel:not([hidden])::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: -1;

    width: min(
        calc(100vw - 48px),
        560px
    );

    height: auto;
    min-height: 540px;
    max-height:
        calc(100vh - 48px);

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(255, 255, 255, 0.82);

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 32px 90px
        rgba(3, 18, 35, 0.38);
}

body > .auth-status-panel:not([hidden])
.auth-status-icon {
    flex: 0 0 auto;

    width: 82px;
    height: 82px;

    margin:
        0
        auto
        22px;
}

body > .auth-status-panel:not([hidden])
.auth-status-kicker {
    width: min(
        450px,
        calc(100vw - 96px)
    );

    margin:
        0
        auto
        12px;

    text-align: center;
}

body > .auth-status-panel:not([hidden])
#account-status-title {
    width: min(
        450px,
        calc(100vw - 96px)
    );

    margin: 0 auto;

    text-align: center;
}

body > .auth-status-panel:not([hidden])
.auth-status-description {
    width: min(
        430px,
        calc(100vw - 96px)
    );

    margin:
        18px
        auto
        0;

    text-align: center;
}

body > .auth-status-panel:not([hidden])
.auth-status-reason {
    width: min(
        430px,
        calc(100vw - 96px)
    );

    box-sizing: border-box;

    margin:
        22px
        auto
        0;
}

body > .auth-status-panel:not([hidden])
.auth-status-back {
    width: min(
        450px,
        calc(100vw - 96px)
    );

    margin:
        28px
        auto
        0;
}

body > .auth-status-panel:not([hidden])
.auth-status-icon--success
~ #account-status-title,

body > .auth-status-panel:not([hidden])
.auth-status-icon--success
~ .auth-status-kicker {
    text-align: center;
}

body > .auth-status-panel:has(
    .auth-status-icon--success
)
#account-status-title {
    color: #079447;
}

body > .auth-status-panel:has(
    .auth-status-icon--danger
)
#account-status-title {
    color: #b42318;
}

@media (max-width: 640px) {
    body > .auth-status-panel:not([hidden]) {
        padding: 16px;
    }

    body > .auth-status-panel:not([hidden])::before {
        width:
            calc(100vw - 32px);

        min-height: 500px;

        max-height:
            calc(100vh - 32px);

        border-radius: 20px;
    }

    body > .auth-status-panel:not([hidden])
    .auth-status-kicker,

    body > .auth-status-panel:not([hidden])
    #account-status-title,

    body > .auth-status-panel:not([hidden])
    .auth-status-description,

    body > .auth-status-panel:not([hidden])
    .auth-status-reason,

    body > .auth-status-panel:not([hidden])
    .auth-status-back {
        width:
            calc(100vw - 72px);
    }
}

/* UI-2C STATUS MODAL BRAND */

body > .auth-status-panel:not([hidden])
.auth-status-brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: min(
        450px,
        calc(100vw - 96px)
    );

    margin:
        0
        auto
        26px;

    text-align: center;
}

body > .auth-status-panel:not([hidden])
.auth-status-brand img {
    display: block;

    width: 72px;
    height: 72px;

    margin:
        0
        auto
        10px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 18px
            rgba(15, 39, 71, 0.10)
        );
}

body > .auth-status-panel:not([hidden])
.auth-status-brand strong {
    display: block;

    margin: 0;

    color: #102a4c;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: 0.13em;
}

body > .auth-status-panel:not([hidden])
.auth-status-brand span {
    display: block;

    margin-top: 5px;

    color: #667085;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.3;
}

body > .auth-status-panel:not([hidden])
.auth-status-brand
+ .auth-status-icon {
    margin-top: 0;
}

@media (max-width: 640px) {
    body > .auth-status-panel:not([hidden])
    .auth-status-brand {
        width:
            calc(100vw - 72px);

        margin-bottom: 22px;
    }

    body > .auth-status-panel:not([hidden])
    .auth-status-brand img {
        width: 64px;
        height: 64px;
    }
}

/* UI-2C STATUS MODAL FINAL REFINEMENT */

/*
 * Final visual proportions.
 * The status overlay remains viewport-owned.
 * Only the white card and inner spacing are refined.
 */

body > .auth-status-panel:not([hidden])::before {
    width: min(
        calc(100vw - 48px),
        500px
    );

    min-height: 0;
    height: 560px;

    max-height:
        calc(100vh - 40px);

    border-radius: 22px;
}


/* Baharimas brand */

body > .auth-status-panel:not([hidden])
.auth-status-brand {
    width: min(
        410px,
        calc(100vw - 96px)
    );

    margin:
        0
        auto
        20px;
}

body > .auth-status-panel:not([hidden])
.auth-status-brand img {
    width: 66px;
    height: 66px;

    margin:
        0
        auto
        8px;

    background: transparent;
    border: 0;
    border-radius: 0;

    box-shadow: none;
    filter: none;
}


/*
 * Remove any visual tile inherited from
 * the general login-card logo treatment.
 */

body > .auth-status-panel:not([hidden])
.auth-status-brand img {
    padding: 0;
    outline: 0;
}


/* Success icon */

body > .auth-status-panel:not([hidden])
.auth-status-icon {
    position: relative;

    width: 76px;
    height: 76px;

    margin:
        0
        auto
        18px;

    overflow: visible;

    box-shadow: none;
}


/*
 * Outer heartbeat ring.
 *
 * The pseudo-element is deliberately placed
 * behind the check circle. The animation uses
 * two quick expansions followed by a resting
 * interval, resembling a heartbeat rhythm.
 */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: -1;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    border:
        2px solid
        rgba(7, 148, 71, 0.22);

    border-radius: 50%;

    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 0.72;

    pointer-events: none;

    animation:
        baharimas-success-heartbeat
        1.65s
        ease-out
        infinite;
}


/*
 * Soft secondary halo stays behind the
 * animated ring and makes the pulse subtle.
 */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: -2;

    width: 98px;
    height: 98px;

    border-radius: 50%;

    background:
        rgba(7, 148, 71, 0.055);

    transform:
        translate(-50%, -50%);

    pointer-events: none;
}


/* Compact content width */

body > .auth-status-panel:not([hidden])
.auth-status-kicker,

body > .auth-status-panel:not([hidden])
#account-status-title {
    width: min(
        410px,
        calc(100vw - 96px)
    );
}

body > .auth-status-panel:not([hidden])
.auth-status-description {
    width: min(
        390px,
        calc(100vw - 96px)
    );

    margin-top: 15px;
}


/* Compact Back to Sign In button */

body > .auth-status-panel:not([hidden])
.auth-status-back {
    width: auto;
    min-width: 190px;
    max-width:
        calc(100vw - 96px);

    margin:
        24px
        auto
        0;

    padding:
        0
        30px;

    align-self: center;
}


/* Heartbeat rhythm:
 * beat — beat — rest
 */

@keyframes baharimas-success-heartbeat {
    0% {
        transform:
            translate(-50%, -50%)
            scale(1);

        opacity: 0.62;
    }

    10% {
        transform:
            translate(-50%, -50%)
            scale(1.18);

        opacity: 0.30;
    }

    18% {
        transform:
            translate(-50%, -50%)
            scale(1.03);

        opacity: 0.52;
    }

    28% {
        transform:
            translate(-50%, -50%)
            scale(1.28);

        opacity: 0;
    }

    29% {
        transform:
            translate(-50%, -50%)
            scale(1);

        opacity: 0;
    }

    100% {
        transform:
            translate(-50%, -50%)
            scale(1);

        opacity: 0;
    }
}


/*
 * Accessibility:
 * users requesting reduced motion still
 * receive the success ring without animation.
 */

@media (prefers-reduced-motion: reduce) {
    body > .auth-status-panel:not([hidden])
    .auth-status-icon--success::after {
        animation: none;

        transform:
            translate(-50%, -50%)
            scale(1.12);

        opacity: 0.32;
    }
}


@media (max-width: 640px) {
    body > .auth-status-panel:not([hidden])::before {
        width:
            calc(100vw - 32px);

        height: 540px;

        max-height:
            calc(100vh - 32px);
    }

    body > .auth-status-panel:not([hidden])
    .auth-status-brand {
        margin-bottom: 18px;
    }

    body > .auth-status-panel:not([hidden])
    .auth-status-brand img {
        width: 60px;
        height: 60px;
    }

    body > .auth-status-panel:not([hidden])
    .auth-status-back {
        min-width: 180px;

        padding:
            0
            26px;
    }
}

/* UI-2C BRAND DEPTH + COASTAL WAVE */


/* -------------------------------------------------
   BAHARIMAS BRAND
   Larger identity with soft corporate depth.
   The logo itself remains visually integrated
   with the white modal surface.
   ------------------------------------------------- */

body > .auth-status-panel:not([hidden])
.auth-status-brand {
    position: relative;

    width: min(
        410px,
        calc(100vw - 96px)
    );

    margin:
        0
        auto
        22px;

    isolation: isolate;
}


/*
 * Soft atmospheric glow behind the logo.
 * This is deliberately not a visible box.
 */

body > .auth-status-panel:not([hidden])
.auth-status-brand::before {
    content: "";

    position: absolute;

    top: -14px;
    left: 50%;

    z-index: -1;

    width: 126px;
    height: 104px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(27, 107, 181, 0.11) 0%,
            rgba(27, 107, 181, 0.055) 38%,
            rgba(27, 107, 181, 0) 72%
        );

    filter: blur(3px);

    pointer-events: none;
}


body > .auth-status-panel:not([hidden])
.auth-status-brand img {
    position: relative;

    width: 82px;
    height: 82px;

    margin:
        0
        auto
        8px;

    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;

    outline: 0;

    box-shadow: none;

    object-fit: contain;

    filter:
        drop-shadow(
            0 7px 9px
            rgba(14, 47, 82, 0.16)
        );

    transform:
        translateZ(0);
}


body > .auth-status-panel:not([hidden])
.auth-status-brand strong {
    color: #102a4c;

    text-shadow:
        0 1px 0
        rgba(255, 255, 255, 0.92),
        0 5px 12px
        rgba(16, 42, 76, 0.08);
}


body > .auth-status-panel:not([hidden])
.auth-status-brand span {
    color: #667085;

    text-shadow:
        0 3px 9px
        rgba(16, 42, 76, 0.055);
}


/* -------------------------------------------------
   SUCCESS ICON
   Keep the central circle restrained.
   The movement happens outside it.
   ------------------------------------------------- */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success {
    position: relative;

    isolation: isolate;

    overflow: visible;

    box-shadow:
        inset 0 0 0 1px
        rgba(7, 148, 71, 0.08);
}


/*
 * Wave 1:
 * Primary soft ripple.
 *
 * It expands only to roughly 1.34x,
 * intentionally avoiding an oversized pulse.
 */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: -1;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    border:
        2px solid
        rgba(7, 148, 71, 0.24);

    border-radius: 50%;

    background:
        rgba(7, 148, 71, 0.025);

    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 0;

    pointer-events: none;

    animation:
        baharimas-coastal-wave-primary
        2.8s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        )
        infinite;
}


/*
 * Wave 2:
 * A second softer wave follows the first.
 * This creates a natural shore-ripple feeling
 * rather than a mechanical heartbeat.
 */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: -2;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    border:
        1.5px solid
        rgba(7, 148, 71, 0.17);

    border-radius: 50%;

    background:
        rgba(7, 148, 71, 0.018);

    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 0;

    pointer-events: none;

    animation:
        baharimas-coastal-wave-secondary
        2.8s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        )
        0.62s
        infinite;
}


/* -------------------------------------------------
   COASTAL WAVE MOTION
   Smooth rise → spread → dissolve → rest.
   ------------------------------------------------- */

@keyframes baharimas-coastal-wave-primary {
    0% {
        transform:
            translate(-50%, -50%)
            scale(0.98);

        opacity: 0;
    }

    10% {
        opacity: 0.52;
    }

    36% {
        transform:
            translate(-50%, -50%)
            scale(1.18);

        opacity: 0.30;
    }

    68% {
        transform:
            translate(-50%, -50%)
            scale(1.34);

        opacity: 0;
    }

    100% {
        transform:
            translate(-50%, -50%)
            scale(1.34);

        opacity: 0;
    }
}


@keyframes baharimas-coastal-wave-secondary {
    0% {
        transform:
            translate(-50%, -50%)
            scale(1);

        opacity: 0;
    }

    12% {
        opacity: 0.36;
    }

    42% {
        transform:
            translate(-50%, -50%)
            scale(1.16);

        opacity: 0.20;
    }

    72% {
        transform:
            translate(-50%, -50%)
            scale(1.29);

        opacity: 0;
    }

    100% {
        transform:
            translate(-50%, -50%)
            scale(1.29);

        opacity: 0;
    }
}


/*
 * Keep motion accessibility from the
 * previous implementation, but override
 * both coastal waves.
 */

@media (prefers-reduced-motion: reduce) {
    body > .auth-status-panel:not([hidden])
    .auth-status-icon--success::before,

    body > .auth-status-panel:not([hidden])
    .auth-status-icon--success::after {
        animation: none;

        transform:
            translate(-50%, -50%)
            scale(1.12);

        opacity: 0.20;
    }
}


@media (max-width: 640px) {
    body > .auth-status-panel:not([hidden])
    .auth-status-brand img {
        width: 72px;
        height: 72px;
    }

    body > .auth-status-panel:not([hidden])
    .auth-status-brand::before {
        width: 112px;
        height: 92px;
    }
}

/* UI-2C FINAL TARGET — SEAMLESS BRAND + COASTAL RIPPLE */


/* =================================================
   1. SEAMLESS BAHARIMAS BRAND

   No square/tile behind the logo.
   The logo visually belongs to the white modal.
   ================================================= */

body > .auth-status-panel:not([hidden])
.auth-status-brand {
    position: relative;

    isolation: isolate;

    margin:
        0
        auto
        20px;

    background: transparent;

    border: 0;

    border-radius: 0;

    box-shadow: none;
}


/*
 * Atmospheric depth only.
 * Radial shape prevents a rectangular card effect.
 */

body > .auth-status-panel:not([hidden])
.auth-status-brand::before {
    content: "";

    position: absolute;

    top: -18px;
    left: 50%;

    z-index: -2;

    width: 150px;
    height: 118px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(22, 101, 175, 0.105) 0%,
            rgba(22, 101, 175, 0.050) 35%,
            rgba(22, 101, 175, 0.018) 52%,
            rgba(22, 101, 175, 0) 72%
        );

    filter: blur(7px);

    box-shadow: none;

    pointer-events: none;
}


/*
 * Explicitly neutralize every possible tile
 * treatment inherited from the login-page logo.
 */

body > .auth-status-panel:not([hidden])
.auth-status-brand img {
    display: block;

    width: 88px;
    height: 88px;

    margin:
        0
        auto
        6px;

    padding: 0;

    background: none !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 0 !important;

    outline: 0 !important;

    box-shadow: none !important;

    object-fit: contain;

    filter:
        drop-shadow(
            0 7px 8px
            rgba(13, 50, 86, 0.15)
        );

    transform: none;
}


/*
 * Brand typography receives subtle depth,
 * without introducing another container.
 */

body > .auth-status-panel:not([hidden])
.auth-status-brand strong {
    text-shadow:
        0 1px 0
        rgba(255, 255, 255, 0.96),
        0 5px 13px
        rgba(16, 42, 76, 0.09);
}

body > .auth-status-panel:not([hidden])
.auth-status-brand span {
    text-shadow:
        0 4px 10px
        rgba(16, 42, 76, 0.055);
}


/* =================================================
   2. SUCCESS CHECK CORE

   Core stays restrained.
   Ripples provide the visual movement.
   ================================================= */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success {
    position: relative;

    isolation: isolate;

    overflow: visible;

    box-shadow:
        inset 0 0 0 1px
        rgba(7, 148, 71, 0.08),
        0 5px 16px
        rgba(7, 148, 71, 0.045);
}


/*
 * Permanent soft water halo.
 */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success {
    background:
        radial-gradient(
            circle,
            rgba(7, 148, 71, 0.105) 0%,
            rgba(7, 148, 71, 0.075) 60%,
            rgba(7, 148, 71, 0.035) 100%
        );
}


/* =================================================
   3. COASTAL RIPPLE — PRIMARY WAVE

   Wider than the previous implementation,
   but deliberately capped at 1.62x.
   ================================================= */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: -1;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    border:
        2px solid
        rgba(7, 148, 71, 0.22);

    border-radius: 50%;

    background:
        rgba(7, 148, 71, 0.022);

    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 0;

    pointer-events: none;

    animation:
        baharimas-coastal-ripple-primary
        3.25s
        cubic-bezier(
            0.20,
            0.58,
            0.30,
            1
        )
        infinite;
}


/* =================================================
   4. COASTAL RIPPLE — FOLLOWING WAVE
   ================================================= */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: -2;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    border:
        1.5px solid
        rgba(7, 148, 71, 0.16);

    border-radius: 50%;

    background:
        rgba(7, 148, 71, 0.014);

    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 0;

    pointer-events: none;

    animation:
        baharimas-coastal-ripple-secondary
        3.25s
        cubic-bezier(
            0.20,
            0.58,
            0.30,
            1
        )
        0.78s
        infinite;
}


/*
 * The primary wave starts gently,
 * expands like a shoreline ripple,
 * then dissolves gradually.
 */

@keyframes baharimas-coastal-ripple-primary {
    0% {
        transform:
            translate(-50%, -50%)
            scale(1);

        opacity: 0;
    }

    8% {
        opacity: 0.42;
    }

    26% {
        transform:
            translate(-50%, -50%)
            scale(1.18);

        opacity: 0.32;
    }

    50% {
        transform:
            translate(-50%, -50%)
            scale(1.40);

        opacity: 0.18;
    }

    72% {
        transform:
            translate(-50%, -50%)
            scale(1.62);

        opacity: 0;
    }

    100% {
        transform:
            translate(-50%, -50%)
            scale(1.62);

        opacity: 0;
    }
}


/*
 * Second wave is slightly smaller and softer.
 * The offset creates a natural rolling rhythm.
 */

@keyframes baharimas-coastal-ripple-secondary {
    0% {
        transform:
            translate(-50%, -50%)
            scale(1.02);

        opacity: 0;
    }

    10% {
        opacity: 0.30;
    }

    30% {
        transform:
            translate(-50%, -50%)
            scale(1.20);

        opacity: 0.24;
    }

    54% {
        transform:
            translate(-50%, -50%)
            scale(1.38);

        opacity: 0.13;
    }

    76% {
        transform:
            translate(-50%, -50%)
            scale(1.54);

        opacity: 0;
    }

    100% {
        transform:
            translate(-50%, -50%)
            scale(1.54);

        opacity: 0;
    }
}


/* =================================================
   5. THIRD VISUAL RIPPLE

   A soft static halo fills the visual gap between
   the check core and animated waves.
   No extra DOM element is required.
   ================================================= */

body > .auth-status-panel:not([hidden])
.auth-status-icon--success {
    outline:
        10px solid
        rgba(7, 148, 71, 0.035);

    outline-offset: 2px;
}


/* =================================================
   6. ACCESSIBILITY
   ================================================= */

@media (prefers-reduced-motion: reduce) {
    body > .auth-status-panel:not([hidden])
    .auth-status-icon--success::before,

    body > .auth-status-panel:not([hidden])
    .auth-status-icon--success::after {
        animation: none;

        transform:
            translate(-50%, -50%)
            scale(1.30);

        opacity: 0.18;
    }
}


@media (max-width: 640px) {
    body > .auth-status-panel:not([hidden])
    .auth-status-brand img {
        width: 78px;
        height: 78px;
    }

    body > .auth-status-panel:not([hidden])
    .auth-status-brand::before {
        width: 132px;
        height: 104px;
    }
}
/* UI-2C EXECUTIVE DECLINED EXPERIENCE */

/*
 * Final danger-only executive presentation.
 *
 * Architecture:
 * - status panel owns the viewport backdrop
 * - ::before owns the white executive card
 * - content remains above the card
 *
 * Registration Submitted remains untouched.
 */

body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
) {
    box-sizing: border-box;

    position: fixed;
    z-index: 9999;

    inset: 0;

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

    width: 100vw;
    height: 100vh;
    min-height: 0;

    margin: 0;

    padding: 40px 24px;

    overflow-x: hidden;
    overflow-y: auto;

    transform: none;

    border: 0;
    border-radius: 0;

    background:
        rgba(4, 24, 45, 0.62);

    color: #102a4c;

    text-align: center;

    box-shadow: none;

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);

    isolation: isolate;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)::before {
    content: "";

    position: absolute;
    z-index: 0;

    top: 50%;
    left: 50%;

    width: min(
        calc(100vw - 48px),
        520px
    );

    height: min(
        calc(100vh - 48px),
        520px
    );

    min-height: 500px;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(148, 163, 184, 0.18);

    border-radius: 22px;

    background:
        #ffffff;

    box-shadow:
        0 30px 80px
        rgba(3, 20, 39, 0.34);
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)::after {
    content: none;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
> * {
    position: relative;
    z-index: 1;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-brand {
    width: min(
        100%,
        440px
    );

    margin:
        0
        auto
        12px;

    text-align: center;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-brand::before {
    width: 108px;
    height: 82px;

    top: -8px;

    opacity: 0.60;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-brand img {
    display: block;

    width: 66px;
    height: 66px;

    margin:
        0
        auto
        5px;

    border: 0;

    background: transparent;

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 14px
            rgba(15, 39, 71, 0.10)
        );
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-brand strong {
    display: block;

    color: #102a4c;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.15;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-brand span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 10px;
    line-height: 1.3;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 52px;
    height: 52px;

    margin:
        2px
        auto
        16px;

    border:
        1px solid
        rgba(180, 35, 24, 0.16);

    border-radius: 50%;

    background:
        rgba(180, 35, 24, 0.055);

    color: transparent;

    font-size: 0;

    box-shadow:
        0 0 0 7px
        rgba(180, 35, 24, 0.025);
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-icon::before {
    content: "!";

    color: #b42318;

    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-kicker {
    width: min(
        100%,
        440px
    );

    margin:
        0
        auto
        7px;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;

    text-align: center;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
#account-status-title {
    width: min(
        100%,
        440px
    );

    margin: 0 auto;

    color: #b42318;

    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;

    text-align: center;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-description {
    width: min(
        100%,
        390px
    );

    margin:
        10px
        auto
        0;

    color: #64748b;

    font-size: 12px;
    line-height: 1.6;

    text-align: center;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-reason {
    position: relative;

    box-sizing: border-box;

    display: block;

    width: min(
        100%,
        440px
    );

    min-height: 92px;

    margin:
        20px
        auto
        0;

    padding:
        14px
        17px
        15px
        20px;

    overflow: hidden;

    border:
        1px solid
        rgba(148, 163, 184, 0.20);

    border-radius: 10px;

    background:
        #f8fafc;

    text-align: left;

    box-shadow:
        0 1px 2px
        rgba(15, 39, 71, 0.025);
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-reason::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: #b42318;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-reason > span {
    display: block;

    margin:
        0
        0
        8px;

    color: #64748b;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;

    text-align: left;

    text-transform: uppercase;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-reason p {
    display: block;

    width: 100%;

    margin: 0;

    padding: 0;

    color: #334155;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;

    text-align: left;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: auto;
    min-width: 176px;
    min-height: 42px;

    margin:
        20px
        auto
        0;

    padding:
        10px
        22px;

    border:
        1px solid
        #0b9f45;

    border-radius: 9px;

    background:
        #0b9f45;

    color: #ffffff;

    font-size: 12px;
    font-weight: 750;

    box-shadow:
        0 7px 18px
        rgba(11, 159, 69, 0.18);
}


body > .auth-status-panel:not([hidden]):has(
    .auth-status-icon--danger
)
.auth-status-back:hover {
    border-color: #07883a;

    background: #07883a;

    box-shadow:
        0 9px 22px
        rgba(11, 159, 69, 0.22);
}


@media (max-width: 640px) {
    body > .auth-status-panel:not([hidden]):has(
        .auth-status-icon--danger
    ) {
        padding:
            28px
            14px;
    }

    body > .auth-status-panel:not([hidden]):has(
        .auth-status-icon--danger
    )::before {
        width:
            calc(100vw - 28px);

        height:
            min(
                calc(100vh - 28px),
                520px
            );

        min-height: 490px;

        border-radius: 18px;
    }

    body > .auth-status-panel:not([hidden]):has(
        .auth-status-icon--danger
    )
    .auth-status-brand {
        width:
            calc(100vw - 72px);
    }

    body > .auth-status-panel:not([hidden]):has(
        .auth-status-icon--danger
    )
    .auth-status-brand img {
        width: 60px;
        height: 60px;
    }

    body > .auth-status-panel:not([hidden]):has(
        .auth-status-icon--danger
    )
    #account-status-title {
        width:
            calc(100vw - 72px);

        font-size: 24px;
    }

    body > .auth-status-panel:not([hidden]):has(
        .auth-status-icon--danger
    )
    .auth-status-description,
    body > .auth-status-panel:not([hidden]):has(
        .auth-status-icon--danger
    )
    .auth-status-reason {
        width:
            calc(100vw - 72px);
    }

    body > .auth-status-panel:not([hidden]):has(
        .auth-status-icon--danger
    )
    .auth-status-back {
        margin-top: 18px;
    }
}


/* RESPONSIVE FOUNDATION R2B — LOGIN MOBILE STABILIZATION */

@media (max-width: 820px) {
    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .auth-shell {
        display: flex;
        width: 100%;
        min-height: 100vh;
        flex-direction: column;
        overflow: visible;
    }

    .auth-visual {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 330px;
        flex: 0 0 auto;
    }

    .auth-workspace {
        position: relative;
        width: 100%;
        max-width: none;
        min-height: auto;
        margin-left: 0;
        overflow: visible;
        flex: 1 0 auto;
    }

    .auth-card {
        width: min(100%, 500px);
        max-width: 100%;
    }

    .auth-field,
    .auth-field-grid,
    .registration-type-grid {
        min-width: 0;
    }
}


@media (max-width: 520px) {
    .auth-field-grid,
    .registration-type-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-card {
        width: 100%;
        padding:
            28px
            22px
            26px;
        border-radius: 18px;
    }
}


@media (max-width: 360px) {
    .auth-visual {
        min-height: 280px;
        padding:
            20px
            16px
            22px;
    }

    .auth-visual-content {
        margin-top: 48px;
    }

    .auth-visual-content h1 {
        font-size: 30px;
    }

    .auth-workspace {
        padding:
            28px
            14px
            20px;
    }

    .auth-card {
        padding:
            24px
            18px
            22px;
    }
}


/* RESPONSIVE FOUNDATION R2D-5 — MOBILE AUTH LANDING */

/*
 * Desktop isolation contract:
 * the mobile landing never participates in desktop layout.
 */
.mobile-auth-landing {
    display: none;
}


@media (max-width: 820px) {
    body.mobile-auth-landing-active {
        min-height: 100dvh;
        overflow-x: hidden;
        background: #071d36;
    }

    body.mobile-auth-landing-active .auth-shell {
        display: block;
        min-height: 100dvh;
    }

    body.mobile-auth-landing-active .auth-visual,
    body.mobile-auth-landing-active .auth-workspace {
        display: none;
    }

    body.mobile-auth-landing-active .mobile-auth-landing {
        position: relative;
        isolation: isolate;
        display: flex;
        width: 100%;
        min-height: 100dvh;
        overflow: hidden;
        color: #ffffff;
        background:
            url("/static/img/baharimas-vessel.svg")
            center center / cover
            no-repeat;
    }

    .mobile-auth-landing::before {
        position: absolute;
        z-index: -3;
        inset: 0;
        content: "";
        background:
            linear-gradient(
                180deg,
                rgba(4, 18, 35, 0.08) 0%,
                rgba(4, 18, 35, 0.16) 30%,
                rgba(4, 18, 35, 0.58) 63%,
                rgba(4, 18, 35, 0.94) 100%
            );
    }

    .mobile-auth-landing::after {
        position: absolute;
        z-index: -2;
        right: -34%;
        bottom: -9%;
        left: -34%;
        height: 29%;
        border-radius: 50% 50% 0 0;
        content: "";
        background:
            rgba(5, 33, 64, 0.82);
        transform:
            rotate(-3deg);
    }

    .mobile-auth-landing-overlay {
        position: absolute;
        z-index: -1;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(
                circle at 50% 24%,
                rgba(255, 255, 255, 0.10),
                transparent 34%
            ),
            linear-gradient(
                90deg,
                rgba(4, 18, 35, 0.12),
                transparent 28%,
                transparent 72%,
                rgba(4, 18, 35, 0.12)
            );
    }

    .mobile-auth-landing-content {
        position: relative;
        z-index: 1;
        display: flex;
        width: 100%;
        min-height: 100dvh;
        flex-direction: column;
        padding:
            max(26px, env(safe-area-inset-top))
            20px
            max(18px, env(safe-area-inset-bottom));
    }

    .mobile-auth-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 11px;
        text-align: left;
    }

    .mobile-auth-brand-mark {
        display: grid;
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
        place-items: center;
        overflow: hidden;
        border:
            1px solid
            rgba(255, 255, 255, 0.70);
        border-radius: 50%;
        background:
            rgba(255, 255, 255, 0.94);
        box-shadow:
            0 10px 30px
            rgba(4, 18, 35, 0.24);
    }

    .mobile-auth-brand-mark img {
        display: block;
        width: 100%;
        height: 100%;
        padding: 4px;
        object-fit: contain;
    }

    .mobile-auth-brand-copy {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .mobile-auth-brand-copy strong {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0.05em;
    }

    .mobile-auth-brand-copy span {
        color:
            rgba(255, 255, 255, 0.80);
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .mobile-auth-hero {
        width: 100%;
        margin:
            clamp(42px, 9vh, 82px)
            auto
            0;
        text-align: center;
    }

    .mobile-auth-eyebrow {
        display: grid;
        grid-template-columns:
            minmax(22px, 1fr)
            auto
            minmax(22px, 1fr);
        align-items: center;
        width: min(100%, 270px);
        margin: 0 auto;
        gap: 12px;
    }

    .mobile-auth-eyebrow span {
        height: 1px;
        background:
            rgba(255, 255, 255, 0.52);
    }

    .mobile-auth-eyebrow p {
        margin: 0;
        color:
            rgba(255, 255, 255, 0.92);
        font-size: 9px;
        font-weight: 750;
        letter-spacing: 0.24em;
        white-space: nowrap;
    }

    .mobile-auth-hero h1 {
        margin:
            17px
            0
            0;
        color: #ffffff;
        font-size:
            clamp(34px, 10.5vw, 48px);
        font-weight: 760;
        line-height: 0.98;
        letter-spacing: -0.045em;
        text-shadow:
            0 4px 24px
            rgba(4, 18, 35, 0.42);
    }

    .mobile-auth-hero h1 em {
        color: #59d36d;
        font-style: normal;
    }

    .mobile-auth-description {
        margin:
            17px
            auto
            0;
        color:
            rgba(255, 255, 255, 0.82);
        font-size: 11px;
        line-height: 1.55;
        letter-spacing: 0.015em;
    }

    .mobile-auth-pillars {
        display: grid;
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
        width: 100%;
        margin:
            clamp(34px, 7vh, 62px)
            auto
            0;
        gap: 8px;
    }

    .mobile-auth-pillar {
        display: flex;
        min-width: 0;
        min-height: 88px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding:
            10px
            4px;
        border:
            1px solid
            rgba(255, 255, 255, 0.17);
        border-radius: 12px;
        background:
            rgba(7, 29, 54, 0.36);
        box-shadow:
            inset 0 1px 0
            rgba(255, 255, 255, 0.06);
        backdrop-filter:
            blur(8px);
        text-align: center;
    }

    .mobile-auth-pillar-icon {
        display: grid;
        width: 30px;
        height: 30px;
        margin-bottom: 7px;
        place-items: center;
        border:
            1px solid
            rgba(255, 255, 255, 0.34);
        border-radius: 9px;
        color: #ffffff;
        font-size: 11px;
        font-weight: 800;
        background:
            rgba(255, 255, 255, 0.08);
    }

    .mobile-auth-pillar strong {
        overflow: hidden;
        max-width: 100%;
        color: #ffffff;
        font-size: 9px;
        font-weight: 750;
        line-height: 1.15;
        text-overflow: ellipsis;
    }

    .mobile-auth-pillar small {
        display: block;
        margin-top: 4px;
        color:
            rgba(255, 255, 255, 0.62);
        font-size: 6.5px;
        line-height: 1.2;
    }

    .mobile-auth-actions {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        width: 100%;
        margin:
            clamp(28px, 5vh, 44px)
            auto
            0;
        gap: 10px;
    }

    .mobile-auth-action {
        display: flex;
        min-width: 0;
        min-height: 58px;
        align-items: center;
        justify-content: center;
        gap: 9px;
        padding:
            10px
            12px;
        cursor: pointer;
        border-radius: 11px;
        font: inherit;
        text-align: left;
        transition:
            transform 140ms ease,
            box-shadow 140ms ease,
            border-color 140ms ease;
    }

    .mobile-auth-action:active {
        transform:
            translateY(1px);
    }

    .mobile-auth-action--login {
        border:
            1px solid
            rgba(49, 185, 78, 0.92);
        background:
            linear-gradient(
                135deg,
                #15983a,
                #28b94d
            );
        color: #ffffff;
        box-shadow:
            0 10px 26px
            rgba(12, 126, 48, 0.24);
    }

    .mobile-auth-action--register {
        border:
            1px solid
            rgba(255, 255, 255, 0.52);
        background:
            rgba(255, 255, 255, 0.91);
        color: #09294c;
        box-shadow:
            0 10px 26px
            rgba(4, 18, 35, 0.16);
    }

    .mobile-auth-action-icon {
        display: grid;
        width: 27px;
        height: 27px;
        flex: 0 0 27px;
        place-items: center;
        border-radius: 8px;
        font-size: 17px;
        font-weight: 500;
    }

    .mobile-auth-action--login
    .mobile-auth-action-icon {
        background:
            rgba(255, 255, 255, 0.14);
        color: #ffffff;
    }

    .mobile-auth-action--register
    .mobile-auth-action-icon {
        background:
            rgba(9, 41, 76, 0.08);
        color: #09294c;
    }

    .mobile-auth-action > span:last-child {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

    .mobile-auth-action strong {
        font-size: 11px;
        font-weight: 800;
        line-height: 1.1;
    }

    .mobile-auth-action small {
        margin-top: 3px;
        opacity: 0.72;
        font-size: 7px;
        line-height: 1.1;
    }

    .mobile-auth-footer {
        margin-top: auto;
        padding-top:
            clamp(30px, 6vh, 54px);
        text-align: center;
    }

    .mobile-auth-footer-message {
        display: grid;
        grid-template-columns:
            minmax(18px, 1fr)
            auto
            minmax(18px, 1fr);
        align-items: center;
        width: min(100%, 300px);
        margin: 0 auto;
        gap: 9px;
    }

    .mobile-auth-footer-message span {
        height: 1px;
        background:
            rgba(255, 255, 255, 0.26);
    }

    .mobile-auth-footer-message p {
        margin: 0;
        color:
            rgba(255, 255, 255, 0.74);
        font-size: 6.5px;
        font-weight: 700;
        letter-spacing: 0.16em;
        white-space: nowrap;
    }

    .mobile-auth-footer > p {
        margin:
            9px
            0
            0;
        color:
            rgba(255, 255, 255, 0.42);
        font-size: 6.5px;
        line-height: 1.5;
    }
}


@media (max-width: 360px) {
    .mobile-auth-landing-content {
        padding:
            max(20px, env(safe-area-inset-top))
            14px
            max(14px, env(safe-area-inset-bottom));
    }

    .mobile-auth-brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .mobile-auth-hero {
        margin-top:
            clamp(30px, 7vh, 48px);
    }

    .mobile-auth-pillars {
        gap: 5px;
    }

    .mobile-auth-pillar {
        min-height: 80px;
        padding:
            8px
            2px;
    }

    .mobile-auth-pillar-icon {
        width: 27px;
        height: 27px;
    }

    .mobile-auth-pillar strong {
        font-size: 8px;
    }

    .mobile-auth-pillar small {
        font-size: 5.8px;
    }

    .mobile-auth-actions {
        gap: 7px;
    }

    .mobile-auth-action {
        min-height: 54px;
        padding:
            9px
            8px;
        gap: 6px;
    }

    .mobile-auth-action-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 15px;
    }

    .mobile-auth-action strong {
        font-size: 10px;
    }

    .mobile-auth-footer {
        padding-top: 24px;
    }
}


/* RESPONSIVE FOUNDATION R2E-4 — MOBILE LANDING FIDELITY */

@media (max-width: 820px) {
    body.mobile-auth-landing-active {
        background: #063565;
    }

    body.mobile-auth-landing-active
    .mobile-auth-landing {
        min-height: 100dvh;
        background:
            linear-gradient(
                180deg,
                #0870c8 0%,
                #0967b7 29%,
                #07548f 58%,
                #06335e 100%
            );
    }

    body.mobile-auth-landing-active
    .mobile-auth-landing::before {
        z-index: -3;
        background:
            url("/static/img/baharimas-vessel.svg")
            center 58%
            / 100% auto
            no-repeat;
        opacity: 1;
    }

    body.mobile-auth-landing-active
    .mobile-auth-landing::after {
        z-index: -2;
        inset: 0;
        height: auto;
        border-radius: 0;
        transform: none;
        background:
            linear-gradient(
                180deg,
                rgba(3, 38, 76, 0.03) 0%,
                rgba(3, 38, 76, 0.04) 35%,
                rgba(3, 38, 76, 0.11) 58%,
                rgba(2, 26, 52, 0.56) 79%,
                rgba(2, 22, 44, 0.90) 100%
            );
    }

    .mobile-auth-landing-overlay {
        background:
            radial-gradient(
                circle at 50% 19%,
                rgba(255, 255, 255, 0.12),
                transparent 32%
            );
    }

    .mobile-auth-landing-content {
        min-height: 100dvh;
        padding:
            12px
            20px
            9px;
    }

    .mobile-auth-brand {
        flex-direction: column;
        justify-content: flex-start;
        gap: 2px;
        text-align: center;
    }

    .mobile-auth-brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        margin-bottom: 2px;
        border: 0;
        border-radius: 50%;
        background: #ffffff;
        box-shadow:
            0 5px 18px
            rgba(2, 27, 55, 0.20);
    }

    .mobile-auth-brand-mark img {
        padding: 2px;
    }

    .mobile-auth-brand-copy {
        align-items: center;
        gap: 0;
    }

    .mobile-auth-brand-copy strong {
        font-size: 16px;
        font-weight: 850;
        line-height: 1.05;
        letter-spacing: 0.16em;
    }

    .mobile-auth-brand-copy span {
        margin-top: 2px;
        color:
            rgba(255, 255, 255, 0.76);
        font-size: 8px;
        line-height: 1;
        letter-spacing: 0.05em;
    }

    .mobile-auth-hero {
        margin:
            10px
            auto
            0;
    }

    .mobile-auth-eyebrow {
        width: min(100%, 245px);
        gap: 9px;
    }

    .mobile-auth-eyebrow span {
        background:
            rgba(255, 255, 255, 0.66);
    }

    .mobile-auth-eyebrow p {
        color: #74e683;
        font-size: 7px;
        font-weight: 850;
        letter-spacing: 0.27em;
    }

    .mobile-auth-hero h1 {
        margin-top: 7px;
        font-size: 29px;
        font-weight: 850;
        line-height: 0.94;
        letter-spacing: -0.045em;
        text-shadow:
            0 3px 12px
            rgba(1, 24, 48, 0.26);
    }

    .mobile-auth-hero h1 em {
        color: #a7e8ff;
    }

    .mobile-auth-description {
        margin-top: 8px;
        color:
            rgba(255, 255, 255, 0.94);
        font-size: 7.5px;
        line-height: 1.42;
        letter-spacing: 0.06em;
        text-shadow:
            0 2px 8px
            rgba(1, 24, 48, 0.26);
    }

    .mobile-auth-pillars {
        width: min(100%, 268px);
        margin:
            10px
            auto
            0;
        gap: 5px;
    }

    .mobile-auth-pillar {
        min-height: 62px;
        padding:
            6px
            2px
            5px;
        border:
            1px solid
            rgba(255, 255, 255, 0.30);
        border-radius: 8px;
        background:
            rgba(12, 83, 140, 0.27);
        box-shadow:
            inset 0 1px 0
            rgba(255, 255, 255, 0.08);
        backdrop-filter:
            blur(3px);
    }

    .mobile-auth-pillar-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 3px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .mobile-auth-pillar-icon svg {
        display: block;
        width: 23px;
        height: 23px;
        overflow: visible;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        color: #ffffff;
    }

    .mobile-auth-pillar strong {
        font-size: 7px;
        font-weight: 800;
        line-height: 1.05;
    }

    .mobile-auth-pillar small {
        margin-top: 2px;
        color:
            rgba(255, 255, 255, 0.88);
        font-size: 5px;
        line-height: 1.05;
    }

    .mobile-auth-actions {
        width: min(100%, 276px);
        margin:
            auto
            auto
            0;
        gap: 8px;
    }

    .mobile-auth-action {
        min-height: 52px;
        gap: 8px;
        padding:
            7px
            10px;
        border-radius: 11px;
    }

    .mobile-auth-action--login {
        border:
            1px solid
            rgba(24, 211, 75, 0.94);
        background:
            linear-gradient(
                135deg,
                #079c39,
                #08c74a
            );
        box-shadow:
            0 8px 22px
            rgba(1, 89, 37, 0.25);
    }

    .mobile-auth-action--register {
        border:
            1px solid
            rgba(255, 255, 255, 0.88);
        background:
            rgba(255, 255, 255, 0.96);
        color: #0a315c;
    }

    .mobile-auth-action-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 8px;
    }

    .mobile-auth-action-icon svg {
        display: block;
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-auth-action strong {
        font-size: 9px;
        font-weight: 850;
    }

    .mobile-auth-action small {
        margin-top: 2px;
        font-size: 5.5px;
    }

    .mobile-auth-footer {
        margin-top: 9px;
        padding-top: 0;
    }

    .mobile-auth-footer-message {
        width: min(100%, 275px);
        gap: 7px;
    }

    .mobile-auth-footer-message p {
        font-size: 5.4px;
        font-weight: 750;
        letter-spacing: 0.17em;
    }

    .mobile-auth-wave {
        display: flex;
        width: 29px;
        height: 14px;
        margin:
            5px
            auto
            1px;
        flex-direction: column;
        justify-content: center;
        gap: 1px;
        transform:
            rotate(-7deg);
    }

    .mobile-auth-wave span {
        display: block;
        width: 25px;
        height: 3px;
        border-radius: 50%;
        border-top:
            2px solid
            #42caff;
        transform:
            skewX(-24deg);
    }

    .mobile-auth-wave span:nth-child(2) {
        margin-left: 3px;
        opacity: 0.85;
    }

    .mobile-auth-wave span:nth-child(3) {
        margin-left: 6px;
        opacity: 0.68;
    }

    .mobile-auth-footer > p {
        margin-top: 2px;
        color:
            rgba(255, 255, 255, 0.65);
        font-size: 5.5px;
        line-height: 1.28;
    }
}


@media (max-width: 360px) {
    .mobile-auth-landing-content {
        padding:
            10px
            14px
            7px;
    }

    .mobile-auth-brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .mobile-auth-brand-copy strong {
        font-size: 14px;
    }

    .mobile-auth-hero {
        margin-top: 8px;
    }

    .mobile-auth-hero h1 {
        font-size: 27px;
    }

    .mobile-auth-pillars {
        margin-top: 8px;
    }

    .mobile-auth-pillar {
        min-height: 58px;
    }

    .mobile-auth-actions {
        gap: 7px;
    }

    .mobile-auth-action {
        min-height: 49px;
        padding:
            6px
            8px;
    }

    .mobile-auth-footer {
        margin-top: 7px;
    }
}


/* RESPONSIVE FOUNDATION R2E-5 — FULLSCREEN MOBILE COMPOSITION */

@media (max-width: 820px) {
    body.mobile-auth-landing-active,
    body.mobile-auth-landing-active .auth-shell,
    body.mobile-auth-landing-active .mobile-auth-landing,
    .mobile-auth-landing-content {
        width: 100%;
        min-height: 100dvh;
    }

    body.mobile-auth-landing-active
    .mobile-auth-landing {
        background: #075aa0;
    }

    body.mobile-auth-landing-active
    .mobile-auth-landing::before {
        z-index: -3;
        inset: 0;
        background:
            url("/static/img/baharimas-vessel.svg")
            center center / cover
            no-repeat;
        opacity: 1;
    }

    body.mobile-auth-landing-active
    .mobile-auth-landing::after {
        z-index: -2;
        inset: 0;
        background:
            linear-gradient(
                180deg,
                rgba(2, 36, 72, 0.02) 0%,
                rgba(2, 36, 72, 0.02) 28%,
                rgba(2, 36, 72, 0.06) 48%,
                rgba(2, 32, 64, 0.20) 70%,
                rgba(2, 24, 49, 0.82) 100%
            );
    }

    .mobile-auth-landing-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 80, 158, 0.02) 0%,
                transparent 48%,
                rgba(0, 25, 52, 0.12) 70%,
                rgba(0, 20, 43, 0.38) 100%
            );
    }

    .mobile-auth-landing-content {
        display: grid;
        grid-template-rows:
            auto
            auto
            auto
            minmax(54px, 1fr)
            auto
            auto;
        align-content: stretch;
        padding:
            10px
            18px
            8px;
    }

    .mobile-auth-brand {
        gap: 1px;
    }

    .mobile-auth-brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        margin-bottom: 1px;
    }

    .mobile-auth-brand-copy strong {
        font-size: 14px;
        letter-spacing: 0.15em;
    }

    .mobile-auth-brand-copy span {
        margin-top: 1px;
        font-size: 7px;
    }

    .mobile-auth-hero {
        margin-top: 7px;
    }

    .mobile-auth-eyebrow {
        width: min(100%, 238px);
    }

    .mobile-auth-eyebrow p {
        font-size: 6.5px;
    }

    .mobile-auth-hero h1 {
        margin-top: 6px;
        font-size: 27px;
        line-height: 0.93;
    }

    .mobile-auth-description {
        margin-top: 7px;
        font-size: 7px;
        line-height: 1.35;
    }

    .mobile-auth-pillars {
        width: min(100%, 270px);
        margin-top: 8px;
        gap: 5px;
    }

    .mobile-auth-pillar {
        min-height: 59px;
        padding:
            5px
            2px;
        border-color:
            rgba(255, 255, 255, 0.34);
        background:
            rgba(12, 85, 146, 0.24);
        backdrop-filter:
            blur(4px);
    }

    .mobile-auth-pillar-icon {
        width: 23px;
        height: 23px;
        margin-bottom: 2px;
    }

    .mobile-auth-pillar-icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-auth-pillar strong {
        font-size: 6.8px;
    }

    .mobile-auth-pillar small {
        font-size: 4.8px;
    }

    /*
     * Deliberate breathing room.
     * The ship/background becomes the middle focal point.
     */
    .mobile-auth-actions {
        grid-row: 5;
        align-self: end;
        width: min(100%, 282px);
        margin:
            0
            auto;
        gap: 8px;
    }

    .mobile-auth-action {
        min-height: 50px;
        padding:
            6px
            9px;
    }

    .mobile-auth-action-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .mobile-auth-action-icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-auth-action strong {
        font-size: 9px;
    }

    .mobile-auth-action small {
        font-size: 5.4px;
    }

    .mobile-auth-footer {
        grid-row: 6;
        margin-top: 7px;
    }

    .mobile-auth-footer-message {
        width: min(100%, 280px);
    }

    .mobile-auth-footer-message p {
        font-size: 5.2px;
    }

    .mobile-auth-wave {
        margin-top: 4px;
    }

    .mobile-auth-footer > p {
        font-size: 5.3px;
    }
}


@media (max-width: 360px) {
    .mobile-auth-landing-content {
        grid-template-rows:
            auto
            auto
            auto
            minmax(62px, 1fr)
            auto
            auto;
        padding:
            9px
            12px
            7px;
    }

    .mobile-auth-brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .mobile-auth-brand-copy strong {
        font-size: 13px;
    }

    .mobile-auth-hero {
        margin-top: 6px;
    }

    .mobile-auth-hero h1 {
        font-size: 25px;
    }

    .mobile-auth-description {
        margin-top: 6px;
    }

    .mobile-auth-pillars {
        margin-top: 7px;
    }

    .mobile-auth-pillar {
        min-height: 56px;
    }

    .mobile-auth-action {
        min-height: 47px;
    }

    .mobile-auth-footer {
        margin-top: 5px;
    }
}


/* RESPONSIVE FOUNDATION R2E-7 — ADAPTIVE HERO SPACING */

@media (max-width: 820px) {
    .mobile-auth-landing-content {
        grid-template-rows:
            auto
            auto
            auto
            clamp(58px, 18dvh, 165px)
            auto
            auto;
    }

    .mobile-auth-actions {
        align-self: start;
    }

    .mobile-auth-footer {
        margin-top:
            clamp(6px, 1.4dvh, 12px);
    }
}


@media (
    max-width: 360px
)
and (
    max-height: 560px
) {
    .mobile-auth-landing-content {
        grid-template-rows:
            auto
            auto
            auto
            clamp(48px, 12dvh, 62px)
            auto
            auto;
    }
}


@media (
    max-width: 820px
)
and (
    min-height: 700px
) {
    .mobile-auth-landing-content {
        grid-template-rows:
            auto
            auto
            auto
            clamp(115px, 17dvh, 155px)
            auto
            auto;
    }
}


@media (
    max-width: 820px
)
and (
    min-height: 850px
) {
    .mobile-auth-landing-content {
        grid-template-rows:
            auto
            auto
            auto
            clamp(135px, 16dvh, 175px)
            auto
            auto;
    }
}


/* RESPONSIVE FOUNDATION R2E-8 — MOBILE VISUAL HIERARCHY */

@media (max-width: 820px) {
    .mobile-auth-landing-content {
        padding:
            clamp(18px, 3.2dvh, 30px)
            18px
            clamp(10px, 1.8dvh, 18px);
    }

    .mobile-auth-brand-mark {
        width: clamp(48px, 7.2dvh, 64px);
        height: clamp(48px, 7.2dvh, 64px);
        flex-basis: auto;
        margin-bottom: 4px;
    }

    .mobile-auth-brand-copy strong {
        font-size:
            clamp(16px, 2.4dvh, 21px);
        line-height: 1;
        letter-spacing: 0.14em;
    }

    .mobile-auth-brand-copy span {
        margin-top: 3px;
        font-size:
            clamp(8px, 1.05dvh, 10px);
    }

    .mobile-auth-hero {
        margin-top:
            clamp(13px, 2.1dvh, 20px);
    }

    .mobile-auth-eyebrow {
        width: min(100%, 270px);
    }

    .mobile-auth-eyebrow p {
        font-size:
            clamp(7px, 1.05dvh, 9px);
        font-weight: 850;
        letter-spacing: 0.24em;
        text-shadow:
            0 1px 5px
            rgba(0, 35, 67, 0.35);
    }

    .mobile-auth-hero h1 {
        margin-top:
            clamp(7px, 1.2dvh, 11px);
        font-size:
            clamp(29px, 4.8dvh, 40px);
        line-height: 0.95;
        letter-spacing: -0.045em;
        text-shadow:
            0 3px 12px
            rgba(0, 27, 56, 0.34);
    }

    .mobile-auth-description {
        margin-top:
            clamp(8px, 1.3dvh, 12px);
        font-size:
            clamp(8px, 1.25dvh, 10.5px);
        font-weight: 550;
        line-height: 1.4;
        letter-spacing: 0.035em;
        color:
            rgba(255, 255, 255, 0.98);
        text-shadow:
            0 2px 7px
            rgba(0, 27, 56, 0.55);
    }

    .mobile-auth-pillars {
        width: min(100%, 310px);
        margin-top:
            clamp(12px, 2dvh, 18px);
        gap: 6px;
    }

    .mobile-auth-pillar {
        min-height:
            clamp(68px, 10dvh, 88px);
        padding:
            8px
            3px
            7px;
        border:
            1px solid
            rgba(255, 255, 255, 0.38);
        border-radius: 10px;
        background:
            rgba(15, 91, 151, 0.40);
        box-shadow:
            inset 0 1px 0
            rgba(255, 255, 255, 0.13),
            0 4px 14px
            rgba(0, 32, 65, 0.10);
        backdrop-filter:
            blur(5px);
    }

    .mobile-auth-pillar-icon {
        width:
            clamp(26px, 4dvh, 34px);
        height:
            clamp(26px, 4dvh, 34px);
        margin-bottom: 4px;
    }

    .mobile-auth-pillar-icon svg {
        width: 100%;
        height: 100%;
        stroke-width: 2;
    }

    .mobile-auth-pillar strong {
        font-size:
            clamp(7.5px, 1.2dvh, 10px);
        font-weight: 850;
    }

    .mobile-auth-pillar small {
        margin-top: 3px;
        font-size:
            clamp(5px, 0.78dvh, 6.5px);
        line-height: 1.15;
    }

    .mobile-auth-actions {
        width: min(100%, 310px);
        gap: 9px;
    }

    .mobile-auth-action {
        min-height:
            clamp(52px, 7.8dvh, 66px);
        padding:
            8px
            11px;
        border-radius: 12px;
    }

    .mobile-auth-action-icon {
        width:
            clamp(31px, 4.8dvh, 40px);
        height:
            clamp(31px, 4.8dvh, 40px);
        flex-basis:
            clamp(31px, 4.8dvh, 40px);
    }

    .mobile-auth-action-icon svg {
        width: 72%;
        height: 72%;
    }

    .mobile-auth-action strong {
        font-size:
            clamp(9.5px, 1.5dvh, 12px);
        font-weight: 850;
    }

    .mobile-auth-action small {
        margin-top: 2px;
        font-size:
            clamp(5.5px, 0.85dvh, 7px);
    }

    .mobile-auth-footer {
        margin-top:
            clamp(9px, 1.5dvh, 14px);
    }

    .mobile-auth-footer-message p {
        font-size:
            clamp(5.5px, 0.8dvh, 7px);
    }

    .mobile-auth-wave {
        width: 34px;
        height: 16px;
        margin-top: 6px;
    }

    .mobile-auth-wave span {
        width: 30px;
    }

    .mobile-auth-footer > p {
        margin-top: 3px;
        font-size:
            clamp(5.5px, 0.82dvh, 7px);
        line-height: 1.35;
    }
}


/*
 * Short viewport protection.
 * Keep 320 × 480 compact enough to remain usable.
 */
@media (
    max-width: 360px
)
and (
    max-height: 560px
) {
    .mobile-auth-landing-content {
        padding:
            10px
            12px
            7px;
    }

    .mobile-auth-brand-mark {
        width: 40px;
        height: 40px;
    }

    .mobile-auth-brand-copy strong {
        font-size: 13px;
    }

    .mobile-auth-brand-copy span {
        font-size: 6.5px;
    }

    .mobile-auth-hero {
        margin-top: 6px;
    }

    .mobile-auth-eyebrow p {
        font-size: 6.5px;
    }

    .mobile-auth-hero h1 {
        margin-top: 5px;
        font-size: 25px;
    }

    .mobile-auth-description {
        margin-top: 5px;
        font-size: 6.5px;
    }

    .mobile-auth-pillars {
        margin-top: 7px;
    }

    .mobile-auth-pillar {
        min-height: 56px;
        padding:
            5px
            2px;
    }

    .mobile-auth-pillar-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
    }

    .mobile-auth-pillar strong {
        font-size: 6.7px;
    }

    .mobile-auth-pillar small {
        margin-top: 2px;
        font-size: 4.7px;
    }

    .mobile-auth-action {
        min-height: 47px;
        padding:
            6px
            8px;
    }

    .mobile-auth-action-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .mobile-auth-action strong {
        font-size: 8.5px;
    }

    .mobile-auth-action small {
        font-size: 5px;
    }

    .mobile-auth-footer {
        margin-top: 5px;
    }

    .mobile-auth-footer-message p {
        font-size: 5px;
    }

    .mobile-auth-wave {
        width: 28px;
        height: 13px;
        margin-top: 4px;
    }

    .mobile-auth-wave span {
        width: 24px;
    }

    .mobile-auth-footer > p {
        font-size: 5px;
    }
}


/* RESPONSIVE FOUNDATION R2E-10B — FULL-PAGE MOBILE AUTH FORM */

@media (max-width: 820px) {
    body.mobile-auth-form-active {
        width: 100%;
        min-width: 0;
        min-height: 100dvh;
        overflow-x: hidden;
        background: #f4f8fc;
    }

    body.mobile-auth-form-active
    .auth-shell {
        display: block;
        width: 100%;
        min-height: 100dvh;
        overflow: visible;
    }

    /*
     * The ship visual belongs to the mobile landing.
     * Once an auth action is selected, the form becomes
     * the complete mobile page.
     */
    body.mobile-auth-form-active
    .auth-visual,
    body.mobile-auth-form-active
    .mobile-auth-landing {
        display: none;
    }

    body.mobile-auth-form-active
    .auth-workspace {
        position: relative;
        display: flex;
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        margin: 0;
        padding:
            clamp(24px, 5dvh, 48px)
            clamp(16px, 5vw, 28px)
            clamp(28px, 5dvh, 48px);
        align-items: flex-start;
        justify-content: center;
        overflow: visible;
        background:
            linear-gradient(
                180deg,
                #f7fbff 0%,
                #eef5fa 100%
            );
    }

    body.mobile-auth-form-active
    .auth-card {
        width: min(100%, 500px);
        max-width: 100%;
        margin: 0 auto;
    }
}


@media (
    max-width: 360px
)
and (
    max-height: 560px
) {
    body.mobile-auth-form-active
    .auth-workspace {
        padding:
            18px
            12px
            24px;
    }

    body.mobile-auth-form-active
    .auth-card {
        width: 100%;
    }
}


/* RESPONSIVE FOUNDATION R2E-10C — SHIP BACKGROUND GLASS FORM */

@media (max-width: 820px) {
    body.mobile-auth-form-active {
        background:
            linear-gradient(
                180deg,
                rgba(3, 28, 54, 0.12) 0%,
                rgba(3, 28, 54, 0.18) 45%,
                rgba(3, 28, 54, 0.48) 100%
            ),
            url("/static/img/baharimas-vessel.svg")
            center center / cover
            no-repeat;
        background-color: #0b4f7f;
    }

    body.mobile-auth-form-active
    .auth-shell {
        min-height: 100dvh;
        background: transparent;
    }

    body.mobile-auth-form-active
    .auth-workspace {
        min-height: 100dvh;
        padding:
            clamp(28px, 5dvh, 52px)
            clamp(16px, 5vw, 28px)
            clamp(30px, 5dvh, 52px);
        background: transparent;
    }

    body.mobile-auth-form-active
    .auth-card {
        width: min(100%, 500px);
        border:
            1px solid
            rgba(255, 255, 255, 0.56);
        background:
            linear-gradient(
                145deg,
                rgba(255, 255, 255, 0.90) 0%,
                rgba(246, 251, 255, 0.78) 55%,
                rgba(235, 246, 253, 0.72) 100%
            );
        box-shadow:
            0 18px 46px
            rgba(2, 28, 54, 0.28),
            inset 0 1px 0
            rgba(255, 255, 255, 0.76);
        backdrop-filter:
            blur(12px)
            saturate(115%);
        -webkit-backdrop-filter:
            blur(12px)
            saturate(115%);
    }

    body.mobile-auth-form-active
    .auth-card::before {
        background:
            linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.24),
                rgba(255, 255, 255, 0)
            );
    }
}


@media (
    max-width: 360px
)
and (
    max-height: 560px
) {
    body.mobile-auth-form-active
    .auth-workspace {
        padding:
            16px
            12px
            20px;
    }

    body.mobile-auth-form-active
    .auth-card {
        backdrop-filter:
            blur(9px)
            saturate(110%);
        -webkit-backdrop-filter:
            blur(9px)
            saturate(110%);
    }
}

