:root {
    --ink: #10212f;
    --muted: #607282;
    --line: #d9e4ea;
    --paper: #f7fbfd;
    --white: #ffffff;
    --red: #df2339;
    --red-dark: #b31327;
    --teal: #0e9f9a;
    --blue: #1769aa;
    --navy: #0b2d4a;
    --deep: #071f36;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 16px 40px rgba(16, 33, 47, 0.10);
    --ring: rgba(23, 105, 170, 0.15);
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: #f8fafc;
}

a {
    color: inherit;
    text-decoration: none;
}

body > main {
    min-height: 100vh;
    min-height: 100dvh;
}

.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.login-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-brand,
.login-home-link,
.login-points span,
.login-input,
.login-row,
.login-check,
.login-submit {
    display: flex;
    align-items: center;
}

.login-brand {
    gap: 10px;
}

.login-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.login-brand span {
    display: grid;
    gap: 2px;
}

.login-brand strong {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.login-brand small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.login-home-link {
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 600;
}

.login-home-link:hover {
    color: var(--blue);
    border-color: rgba(23, 105, 170, 0.32);
}

.login-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(340px, 0.94fr) minmax(390px, 0.98fr);
    align-items: stretch;
    margin: 20px 0 60px;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.login-intro {
    min-height: 560px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    background: #0b2d4a;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.login-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    z-index: -1;
}

.login-intro::after {
    content: "";
    position: absolute;
    inset: auto -24px -24px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    filter: blur(20px);
    z-index: -1;
}

.login-logo-frame {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.login-logo-frame img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.login-kicker {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.login-intro h1 {
    margin: 8px 0 14px;
    color: var(--white);
    font-size: clamp(2.2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.login-intro p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.65;
}

.login-points {
    display: grid;
    gap: 9px;
    margin-top: 28px;
}

.login-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.login-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.login-hero-note {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.6;
}

.login-points span {
    gap: 9px;
    width: fit-content;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 800;
}

.login-points i {
    color: #ffffff;
    font-size: 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    align-self: center;
    justify-self: center;
    padding: 40px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.login-card__header {
    margin-bottom: 24px;
}

.login-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--blue);
    background: rgba(23, 105, 170, 0.08);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.login-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.login-alerts {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
}

.login-alert--error,
.login-alert--danger {
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.login-alert--success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.login-alert--warning {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.login-alert--info {
    color: var(--navy);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 7px;
}

.login-field label {
    color: #475569; /* Slate 600 */
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.login-input {
    min-height: 44px;
    border: 1px solid #cbd5e1; /* Slate 300 */
    border-radius: 8px;
    background: #f8fafc; /* Slate 50 */
    position: relative;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input:focus-within {
    border-color: #3b82f6; /* Focus Blue */
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-input.is-invalid {
    border-color: var(--red);
}

.login-input > i {
    flex: 0 0 auto;
    padding: 0 12px;
    color: #64748b; /* Slate 500 */
    transition: color 150ms ease;
}

.login-input:focus-within > i {
    color: #3b82f6;
}

.login-input input[type="text"],
.login-input input[type="password"],
.login-input select,
.login-field-control {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--ink);
    box-shadow: none !important;
    font: inherit;
    font-size: 0.9rem;
    padding: 10px 12px 10px 0;
}

.login-input input::placeholder {
    color: #94a3b8;
}

.login-input input:disabled,
.login-input select:disabled,
.login-field-control:disabled {
    color: #8091a0;
    cursor: not-allowed;
}

.login-input select,
.login-field-control:is(select) {
    appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.login-input select:disabled,
.login-field-control:is(select):disabled {
    cursor: not-allowed;
}

.login-select-chevron {
    position: absolute;
    right: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: transform 180ms ease, color 180ms ease;
}

.login-input:focus-within .login-select-chevron {
    color: var(--blue);
    transform: translateY(1px);
}

.login-input.is-loading .login-select-chevron {
    opacity: 0;
}

.login-input.is-loading::after {
    content: "";
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(23, 105, 170, 0.22);
    border-top-color: var(--blue);
    border-radius: 999px;
    animation: login-spin 0.7s linear infinite;
}

.login-eye {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0 12px;
    cursor: pointer;
}

.login-eye:hover {
    color: var(--red-dark);
}

.login-field__error {
    margin: 0;
    color: var(--red-dark);
    font-size: 0.78rem;
    font-weight: 750;
}

.login-field__status {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.45;
}

.login-field__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.45;
}

.login-field__status.is-valid {
    color: #198754;
}

.login-field__status.is-invalid {
    color: var(--red-dark);
}

.login-row {
    justify-content: space-between;
    gap: 14px;
}

.login-check {
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.login-check input,
.login-check-control {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}

.login-row a {
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 850;
}

.login-row a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.login-row-prompt {
    color: var(--red-dark);
    font-weight: 900;
}

.login-submit {
    min-height: 44px;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    box-shadow: 0 4px 12px rgba(23, 105, 170, 0.20);
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.login-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #2b8bd3 0%, var(--blue) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(23, 105, 170, 0.30);
}

.login-submit:active:not(:disabled) {
    transform: translateY(0);
}

.login-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

@keyframes login-spin {
    to { transform: rotate(360deg); }
}

.login-spin {
    display: inline-block;
    animation: login-spin 0.7s linear infinite;
}

.login-copy {
    margin: 18px 0 0;
    color: #8a9baa;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.55;
}

body.register-page,
body.login-page {
    background: #f8fafc;
}

.register-page .login-shell,
.login-page .login-shell {
    width: min(1060px, calc(100% - 32px));
}

.register-page .login-main,
.login-page .login-main {
    grid-template-columns: minmax(310px, 0.82fr) minmax(400px, 0.95fr);
    border-color: rgba(217, 228, 234, 0.98);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(16, 33, 47, 0.10);
}

.register-page .login-intro,
.login-page .login-intro {
    min-height: 460px;
    padding: clamp(34px, 5vw, 50px);
    background: #0b2d4a;
}

.register-page .login-intro::before,
.login-page .login-intro::before {
    background: none;
}

.register-page .login-card,
.login-page .login-card {
    max-width: 440px;
    background: #ffffff;
}

.register-page .login-logo-frame,
.login-page .login-logo-frame {
    width: 96px;
    height: 96px;
    margin-bottom: 22px;
}

.register-page .login-logo-frame img,
.login-page .login-logo-frame img {
    width: 78px;
    height: 78px;
}

.register-page .login-intro h1,
.login-page .login-intro h1 {
    margin-bottom: 16px;
}

.register-page .login-intro p,
.login-page .login-intro p {
    max-width: 390px;
}

@media (max-width: 900px) {
    .login-shell {
        width: min(100% - 24px, 720px);
    }

    .login-main,
    .register-page .login-main,
    .login-page .login-main {
        grid-template-columns: 1fr;
        margin-top: 8px;
        margin-bottom: 32px;
        background: #ffffff;
    }

    .login-intro,
    .register-page .login-intro,
    .login-page .login-intro {
        min-height: auto;
        padding: 30px 28px;
    }

    .login-logo-frame {
        width: 88px;
        height: 88px;
        margin-bottom: 18px;
    }

    .login-logo-frame img {
        width: 72px;
        height: 72px;
    }

    .login-intro h1 {
        font-size: 2.6rem;
    }

    .login-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .login-points span {
        width: auto;
        justify-content: center;
        text-align: center;
    }

    .login-card,
    .register-page .login-card,
    .login-page .login-card {
        max-width: none;
        width: 100%;
        padding: 32px 28px;
    }
}

@media (max-width: 560px) {
    body {
        background: #ffffff;
    }

    .login-shell,
    .register-page .login-shell,
    .login-page .login-shell {
        width: 100%;
        min-height: 100dvh;
    }

    .login-topbar {
        min-height: 64px;
        gap: 10px;
        padding: 8px 12px;
        border-bottom: 1px solid rgba(217, 228, 234, 0.75);
    }

    .login-brand {
        min-width: 0;
    }

    .login-brand img {
        width: 38px;
        height: 38px;
    }

    .login-brand small {
        display: none;
    }

    .login-brand strong {
        font-size: 1rem;
        white-space: nowrap;
    }

    .login-home-link {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .login-main,
    .register-page .login-main,
    .login-page .login-main {
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-intro,
    .register-page .login-intro,
    .login-page .login-intro {
        padding: 20px 18px;
    }

    .login-logo-frame,
    .register-page .login-logo-frame,
    .login-page .login-logo-frame {
        width: 58px;
        height: 58px;
        margin-bottom: 12px;
    }

    .login-logo-frame img,
    .register-page .login-logo-frame img,
    .login-page .login-logo-frame img {
        width: 46px;
        height: 46px;
    }

    .login-kicker {
        max-width: 100%;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .login-intro h1 {
        margin: 8px 0;
        font-size: 2rem;
        line-height: 1.05;
    }

    .login-intro p {
        max-width: none;
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .login-points {
        display: none;
    }

    .login-card,
    .register-page .login-card,
    .login-page .login-card {
        padding: 22px 16px 24px;
    }

    .login-card__header {
        margin-bottom: 18px;
    }

    .login-card__badge {
        margin-bottom: 10px;
        white-space: normal;
    }

    .login-card h2 {
        font-size: 1.38rem;
    }

    .login-card p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .login-form {
        gap: 14px;
    }

    .login-input {
        min-height: 42px;
    }

    .login-input > i {
        padding: 0 10px;
    }

    .login-eye {
        min-width: 38px;
        min-height: 38px;
        padding: 0 10px;
    }

    .login-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .login-submit {
        min-height: 42px;
    }
}

@media (max-width: 400px) {
    .login-topbar {
        padding-inline: 10px;
    }

    .login-home-link {
        gap: 6px;
        padding-inline: 9px;
    }

    .login-intro,
    .register-page .login-intro,
    .login-page .login-intro {
        padding: 16px 14px;
    }

    .login-kicker {
        display: none;
    }

    .login-intro h1 {
        margin-top: 0;
        font-size: 1.72rem;
    }

    .login-intro p {
        font-size: 0.84rem;
    }

    .login-card,
    .register-page .login-card,
    .login-page .login-card {
        padding: 20px 14px 22px;
    }

    .login-input input[type="text"],
    .login-input input[type="password"],
    .login-input select,
    .login-field-control {
        font-size: 0.9rem;
        padding-right: 8px;
    }

    .login-input select,
    .login-field-control:is(select) {
        padding-right: 38px;
    }
}

/* Public header/footer auth pages */
body.login-page,
body.register-page {
    background: #f4f8fb;
}

body.login-page > main,
body.register-page > main {
    min-height: auto;
}

.auth-public-main {
    background:
        linear-gradient(180deg, rgba(5, 15, 79, 0.035), rgba(255, 255, 255, 0) 260px),
        #f4f8fb;
}

.auth-public-main .login-shell,
.register-page .auth-public-main .login-shell,
.login-page .auth-public-main .login-shell {
    min-height: auto;
    padding: clamp(34px, 5vw, 66px) 0;
}

.auth-public-main .login-main,
.register-page .auth-public-main .login-main,
.login-page .auth-public-main .login-main {
    margin: 0 auto;
    border-radius: 8px;
    border-color: rgba(217, 228, 234, 0.92);
    box-shadow: 0 22px 52px rgba(16, 33, 47, 0.12);
}

.auth-public-main .login-intro,
.register-page .auth-public-main .login-intro,
.login-page .auth-public-main .login-intro {
    background: linear-gradient(155deg, #010520 0%, #050f4f 58%, #082238 100%);
}

.auth-public-main .login-intro::before {
    background:
        radial-gradient(ellipse 60% 80% at 30% 62%, rgba(223, 35, 57, 0.16) 0, transparent 60%),
        radial-gradient(ellipse 58% 72% at 72% 42%, rgba(252, 209, 22, 0.10) 0, transparent 58%);
}

.auth-public-main .login-intro::after {
    inset: 50% auto auto 50%;
    width: 310px;
    height: 310px;
    border-radius: 0;
    background: url("../img/mlogo.8f115162519d.webp") center / contain no-repeat;
    opacity: 0.055;
    filter: grayscale(1) brightness(3.2);
    transform: translate(-50%, -50%);
}

.auth-public-main .login-card {
    border-radius: 8px;
}

.auth-public-main .login-card__badge i,
.auth-public-main .login-submit__icon,
.auth-public-main .reg-next-btn i {
    font-size: 1rem;
}

.auth-public-main .login-row[style],
.auth-public-main p[style] {
    text-wrap: balance;
}

@media (max-width: 900px) {
    .auth-public-main .login-shell,
    .register-page .auth-public-main .login-shell,
    .login-page .auth-public-main .login-shell {
        padding: 26px 0 38px;
    }
}

@media (max-width: 560px) {
    .auth-public-main {
        background: #f4f8fb;
    }

    .auth-public-main .login-shell,
    .register-page .auth-public-main .login-shell,
    .login-page .auth-public-main .login-shell {
        width: min(100% - 20px, 420px);
        padding: 18px 0 28px;
    }

    .auth-public-main .login-main,
    .register-page .auth-public-main .login-main,
    .login-page .auth-public-main .login-main {
        overflow: hidden;
    }
}
/* Centered login page without intro panel */
.login-page .auth-public-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .auth-public-main .login-shell {
    width: min(520px, calc(100% - 32px));
}

.login-page .auth-public-main .login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    min-height: auto;
    padding: clamp(24px, 4vw, 38px);
    background: rgba(255, 255, 255, 0.96);
}

.login-page .auth-public-main .login-card {
    max-width: 440px;
    border: 0;
    box-shadow: none;
}

@media (max-width: 560px) {
    .login-page .auth-public-main .login-shell {
        width: min(100% - 20px, 420px);
    }

    .login-page .auth-public-main .login-main {
        padding: 0;
        background: #ffffff;
    }
}
/* Compact centered login card */
.login-page .auth-public-main .login-shell {
    width: min(500px, calc(100% - 32px));
    padding: clamp(22px, 3vw, 42px) 0;
}

.login-page .auth-public-main .login-main {
    max-width: 500px;
    padding: clamp(16px, 3vw, 24px);
}

.login-page .auth-public-main .login-card {
    max-width: 420px;
    padding: 26px 28px 24px;
}

.login-page .auth-public-main .login-card__header {
    margin-bottom: 16px;
}

.login-page .auth-public-main .login-card__badge {
    margin-bottom: 8px;
    padding: 5px 9px;
}

.login-page .auth-public-main .login-card h2 {
    font-size: 1.38rem;
}

.login-page .auth-public-main .login-card p {
    margin-top: 4px;
}

.login-page .auth-public-main .login-form {
    gap: 12px;
}

.login-page .auth-public-main .login-field {
    gap: 6px;
}

.login-page .auth-public-main .login-input,
.login-page .auth-public-main .login-submit {
    min-height: 42px;
}

.login-page .auth-public-main .login-row {
    gap: 10px;
}

.login-page .auth-public-main .login-row--join {
    margin-top: -2px;
}

.login-page .auth-public-main .login-row--home {
    justify-content: center;
    margin: -2px 0 4px;
}

.login-page .auth-public-main .login-row--home a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 600;
}

.login-page .auth-public-main .login-copy {
    margin-top: 14px;
}

@media (max-width: 560px) {
    .login-page .auth-public-main .login-shell {
        width: min(100% - 20px, 400px);
        padding: 16px 0 24px;
    }

    .login-page .auth-public-main .login-main {
        padding: 0;
    }

    .login-page .auth-public-main .login-card {
        padding: 20px 16px 22px;
    }
}
.login-page .auth-public-main .login-check {
    display: inline-flex;
    align-items: center;
}

.login-page .auth-public-main .login-check input[type="checkbox"],
.login-page .auth-public-main .login-check-control {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
}
/* EMTAG portal login redesign */
body.login-page {
    background: #eef4fb;
}


body.login-page > main,
.login-page .auth-public-main {
    min-height: 100vh;
    min-height: 100dvh;
}

.login-page .auth-public-main {
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 34px);
    background:
        radial-gradient(circle at 12% 14%, rgba(23, 105, 170, 0.12), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #eaf2fb 48%, #f8fbff 100%);
}

.login-page .auth-public-main .login-shell,
.register-page .auth-public-main .login-shell {
    min-height: auto;
}

.login-page .auth-public-main .login-portal-shell {
    width: min(1180px, calc(100% - 18px));
    padding: 0;
}

.login-page .auth-public-main .login-portal-main {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(390px, 0.72fr);
    align-items: stretch;
    width: 100%;
    max-width: none;
    min-height: min(720px, calc(100dvh - 54px));
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(7, 31, 54, 0.18);
}

.login-portal-visual {
    position: relative;
    isolation: isolate;
    min-height: 640px;
    padding: clamp(34px, 4vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #ffffff;
    background: #061b55;
}

.login-portal-photo {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
}

.login-portal-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(1, 12, 56, 0.92) 0%, rgba(1, 12, 56, 0.78) 43%, rgba(1, 12, 56, 0.34) 100%),
        linear-gradient(0deg, rgba(1, 12, 56, 0.72), rgba(1, 12, 56, 0.1));
}

.login-portal-visual::after {
    content: "";
    position: absolute;
    top: -10%;
    right: -76px;
    z-index: -1;
    width: 152px;
    height: 120%;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 48%, #f4a900 48%, #f4a900 54%, #0b45bd 54%, #0b45bd 100%);
    transform: skewX(-12deg);
    box-shadow: -18px 0 0 rgba(255, 255, 255, 0.24);
}

.login-portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-width: 0;
}

.login-portal-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 999px;
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.login-portal-brand span {
    display: grid;
    gap: 2px;
}

.login-portal-brand strong {
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1;
}

.login-portal-brand small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-portal-copy {
    max-width: 640px;
}

.login-portal-kicker {
    display: inline-block;
    position: relative;
    margin-bottom: 16px;
    padding-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    font-style: italic;
    font-weight: 800;
    line-height: 1.35;
}

.login-portal-kicker::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 94px;
    height: 5px;
    border-radius: 999px;
    background: #f4a900;
}

.login-portal-copy h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(3.35rem, 7vw, 5.8rem);
    font-weight: 950;
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-portal-copy p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    font-weight: 600;
    line-height: 1.5;
}

.login-portal-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 690px;
    margin-top: 30px;
}

.login-portal-points span {
    display: grid;
    gap: 8px;
    min-height: 108px;
    padding: 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(3, 30, 98, 0.76);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1.25;
    text-transform: uppercase;
}

.login-portal-points i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #ffffff;
    color: #0b45bd;
    font-size: 1.35rem;
}

.login-page .auth-public-main .login-portal-card {
    max-width: none;
    width: 100%;
    min-height: 100%;
    align-self: stretch;
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 4.4vw, 62px) clamp(30px, 4vw, 52px);
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.login-portal-card__header {
    margin-bottom: 26px;
    text-align: left;
}

.login-card-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 18px;
}

.login-page .auth-public-main .login-card__badge {
    margin-bottom: 12px;
    color: #0b45bd;
    background: rgba(11, 69, 189, 0.08);
}

.login-page .auth-public-main .login-card h2 {
    color: #061b55;
    font-size: clamp(1.65rem, 2.3vw, 2rem);
    font-weight: 900;
}

.login-page .auth-public-main .login-card p {
    max-width: 360px;
    margin-top: 7px;
    color: #637083;
    font-size: 0.94rem;
}

.login-page .auth-public-main .login-form {
    gap: 16px;
}

.login-page .auth-public-main .login-field {
    gap: 8px;
}

.login-page .auth-public-main .login-input {
    min-height: 48px;
    border-color: #d5dfeb;
    background: #f7faff;
}

.login-page .auth-public-main .login-submit {
    min-height: 48px;
    margin-top: 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b45bd 0%, #061b55 100%);
    box-shadow: 0 12px 26px rgba(11, 69, 189, 0.24);
    font-weight: 850;
}

.login-page .auth-public-main .login-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #1769aa 0%, #0b45bd 100%);
}

.login-portal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: #667789;
    font-size: 0.88rem;
    font-weight: 700;
}

.login-portal-actions a,
.login-portal-home {
    color: #0b45bd;
    font-weight: 850;
}

.login-portal-actions a:hover,
.login-portal-home:hover {
    color: #061b55;
    text-decoration: underline;
}

.login-portal-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 12px auto 0;
    font-size: 0.86rem;
}

.login-page .auth-public-main .login-copy {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .login-page .auth-public-main {
        padding: 18px;
    }

    .login-page .auth-public-main .login-portal-shell {
        width: min(100%, 760px);
    }

    .login-page .auth-public-main .login-portal-main {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-portal-visual {
        min-height: 430px;
        padding: 30px;
    }

    .login-portal-visual::after {
        top: auto;
        right: -8%;
        bottom: -90px;
        width: 116%;
        height: 150px;
        transform: rotate(-4deg);
    }

    .login-portal-copy h1 {
        font-size: clamp(2.6rem, 10vw, 4.7rem);
    }

    .login-page .auth-public-main .login-portal-card {
        min-height: auto;
        padding: 34px 30px 36px;
    }
}

@media (max-width: 620px) {
    .login-page .auth-public-main {
        display: block;
        padding: 0;
        background: #ffffff;
    }

    .login-page .auth-public-main .login-portal-shell {
        width: 100%;
    }

    .login-page .auth-public-main .login-portal-main {
        border-radius: 0;
        box-shadow: none;
    }

    .login-portal-visual {
        min-height: 330px;
        padding: 22px 18px 28px;
    }

    .login-portal-brand img {
        width: 48px;
        height: 48px;
    }

    .login-portal-kicker {
        margin-bottom: 12px;
        font-size: 0.95rem;
    }

    .login-portal-copy h1 {
        margin-bottom: 12px;
        font-size: clamp(2.2rem, 13vw, 3.35rem);
    }

    .login-portal-copy p {
        font-size: 0.95rem;
    }

    .login-portal-points {
        display: none;
    }

    .login-page .auth-public-main .login-portal-card {
        padding: 28px 18px 32px;
    }

    .login-card-logo {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }

    .login-portal-card__header {
        margin-bottom: 20px;
    }

    .login-page .auth-public-main .login-row {
        align-items: center;
        flex-direction: row;
        gap: 12px;
    }

    .login-portal-actions {
        flex-wrap: wrap;
        text-align: center;
    }
}
/* Enterprise-style split login */
body.login-page {
    background: #f3f3f5;
}


.login-page .auth-public-main {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    background: #ffffff;
}

.login-split-shell {
    display: grid;
    grid-template-columns: minmax(0, 62fr) minmax(430px, 38fr);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    color: #050f4f;
}

.login-showcase {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    min-width: 0;
    padding: clamp(38px, 5vw, 74px);
    background: #ffffff;
}

.login-showcase__stage {
    width: min(100%, 760px);
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.login-showcase__image {
    display: block;
    width: 100%;
    max-height: min(560px, 68vh);
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}


.login-access {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(34px, 5vw, 56px) clamp(32px, 4vw, 50px);
    background: #f2f2f5;
}

.login-access__inner {
    width: min(100%, 424px);
    margin: 0 auto;
}

.login-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    min-height: 48px;
    margin-bottom: 38px;
    padding: 4px;
    border-radius: 8px;
    background: #e2e2e7;
}

.login-tabs button {
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #4e5360;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 500;
    cursor: default;
}

.login-tabs button.is-active {
    color: #050f4f;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(14, 21, 37, 0.16);
    font-weight: 800;
}

.login-access-form {
    display: grid;
    gap: 21px;
}

.login-access-form .login-field {
    display: grid;
    gap: 9px;
}

.login-access-form .login-field label {
    color: #050f4f;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.login-access-form .login-input {
    min-height: 50px;
    border: 1px solid #d2d5dd;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.login-access-form .login-input:focus-within {
    border-color: #0b45bd;
    box-shadow: 0 0 0 3px rgba(11, 69, 189, 0.12);
}

.login-access-form .login-input > i:not(.bi-eye):not(.bi-eye-slash) {
    display: none;
}

.login-access-form .login-input input[type="text"],
.login-access-form .login-input input[type="password"],
.login-access-form .login-field-control {
    padding: 13px 16px;
    color: #101827;
    font-size: 0.86rem;
}

.login-access-form .login-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    color: #9aa0aa;
    padding: 0 14px;
}

.login-forgot {
    width: fit-content;
    margin-top: -4px;
    color: #050f4f;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: underline;
}

.login-forgot:hover {
    color: #0b45bd;
}

.login-access-form .login-submit {
    justify-self: end;
    width: 140px;
    min-height: 48px;
    margin-top: 0;
    border-radius: 8px;
    background: #0b45bd;
    box-shadow: 0 8px 16px rgba(11, 69, 189, 0.26);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.login-access-form .login-submit:hover:not(:disabled) {
    background: #061b55;
    transform: translateY(-1px);
}

.login-access-form .login-submit__icon {
    display: none;
}

.login-access__divider {
    width: 100%;
    height: 1px;
    margin: 28px 0 20px;
    background: #dedfe5;
}

.login-create-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #737985;
    font-size: 0.88rem;
    line-height: 1.4;
}

.login-create-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 18px;
    border: 2px solid #0b45bd;
    border-radius: 8px;
    color: #0b45bd;
    background: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
}

.login-create-row a:hover {
    color: #ffffff;
    background: #0b45bd;
    text-decoration: none;
}

.login-access__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 20px auto 0;
    color: #666d7a;
    font-size: 0.84rem;
    font-weight: 700;
}

.login-access__home:hover {
    color: #0b45bd;
    text-decoration: underline;
}

.login-access__logo {
    position: absolute;
    right: clamp(24px, 4vw, 48px);
    bottom: clamp(22px, 3vw, 38px);
    width: 108px;
    height: auto;
    object-fit: contain;
}

.login-access .login-alerts {
    margin: -16px 0 20px;
}

@media (max-width: 980px) {
    .login-split-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-showcase {
        min-height: 42vh;
        padding: 30px 24px 20px;
    }

    .login-showcase__image {
        max-height: 400px;
    }

    .login-access {
        min-height: 58vh;
        padding: 34px 24px 96px;
    }

    .login-tabs {
        margin-bottom: 28px;
    }
}

@media (max-width: 560px) {
    .login-showcase {
        min-height: auto;
        padding: 20px 16px 10px;
    }

    .login-showcase__image {
        max-height: 260px;
    }

    .login-access {
        padding: 28px 18px 86px;
    }

    .login-tabs {
        min-height: 46px;
        margin-bottom: 26px;
    }

    .login-tabs button {
        font-size: 0.86rem;
    }

    .login-create-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .login-access-form .login-submit {
        width: 100%;
    }

    .login-access__logo {
        right: 50%;
        bottom: 22px;
        width: 86px;
        transform: translateX(50%);
    }
}

/* Edge-to-edge split login correction */
.login-page .auth-public-main {
    display: block;
    align-items: initial;
    justify-content: initial;
    place-items: initial;
}

.login-split-shell {
    width: 100%;
    max-width: none;
}
/* Reference-style EMTAG login correction */
body.login-page,
.login-page .auth-public-main {
    margin: 0;
    background: #ffffff;
}

.login-page .auth-public-main {
    display: block !important;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 !important;
}

.login-split-shell {
    display: grid;
    grid-template-columns: minmax(0, 62%) minmax(420px, 38%);
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
}

.login-showcase {
    display: grid;
    grid-template-rows: 1fr auto;
    min-width: 0;
    min-height: 100vh;
    padding: clamp(34px, 5.8vw, 82px) clamp(34px, 6vw, 86px) clamp(28px, 4vw, 54px);
    background: #ffffff;
}

.login-showcase__stage {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 830px;
    margin: 0 auto;
}

.login-promo-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.96fr) minmax(280px, 1.04fr);
    align-items: center;
    gap: clamp(24px, 4vw, 46px);
    width: 100%;
    min-height: 390px;
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(11, 69, 189, 0.055), rgba(244, 169, 0, 0.06)),
        #ffffff;
}



.login-promo-photo {
    position: relative;
    z-index: 1;
    aspect-ratio: 0.86;
    max-height: 330px;
    overflow: hidden;
    border: 14px solid #0b45bd;
    border-radius: 24px;
    box-shadow: 0 18px 32px rgba(5, 15, 79, 0.18);
}


.login-promo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.login-promo-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    color: #050f4f;
}

.login-promo-logo {
    display: block;
    width: 104px;
    height: auto;
    margin: 0 0 26px auto;
    object-fit: contain;
}

.login-promo-kicker {
    margin: 0 0 12px;
    color: #0b45bd;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-style: italic;
    font-weight: 850;
    line-height: 1.35;
}

.login-promo-kicker::after {
    content: "";
    display: block;
    width: 92px;
    height: 5px;
    margin-top: 16px;
    border-radius: 999px;
    background: #f4a900;
}

.login-promo-content h1 {
    margin: 0 0 14px;
    color: #050f4f;
    font-size: clamp(2.45rem, 4.8vw, 4.65rem);
    font-weight: 950;
    line-height: 0.96;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-promo-text {
    margin: 0;
    color: #152136;
    font-size: clamp(1rem, 1.55vw, 1.22rem);
    font-weight: 600;
    line-height: 1.45;
}

.login-promo-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
    padding: 14px;
    border-radius: 20px;
    background: #061b55;
}

.login-promo-badges span {
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.login-promo-badges span:last-child {
    border-right: 0;
}


.login-access {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: clamp(46px, 7.2vh, 58px) clamp(42px, 4vw, 52px) 112px;
    background: #f2f2f5;
}

.login-access__inner {
    width: 100%;
    max-width: 424px;
    margin: 0 auto;
}

.login-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 48px;
    margin-bottom: 38px;
    padding: 4px;
    border-radius: 8px;
    background: #e1e1e6;
}

.login-tabs button {
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #555b66;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 500;
}

.login-tabs button.is-active {
    color: #050f4f;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(5, 15, 79, 0.18);
    font-weight: 850;
}

.login-access-form {
    display: grid;
    gap: 21px;
}

.login-access-form .login-field {
    display: grid;
    gap: 9px;
}

.login-access-form .login-field label {
    color: #050f4f;
    font-size: 0.88rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.login-access-form .login-input {
    min-height: 50px;
    border: 1px solid #d2d5dd;
    border-radius: 8px;
    background: #ffffff;
}

.login-access-form .login-input input[type="text"],
.login-access-form .login-input input[type="password"],
.login-access-form .login-field-control {
    padding: 13px 16px;
    font-size: 0.86rem;
}

.login-forgot {
    width: fit-content;
    margin-top: -4px;
    color: #050f4f;
    font-size: 0.88rem;
    font-weight: 850;
    text-decoration: underline;
}

.login-access-form .login-submit {
    justify-self: end;
    width: 140px;
    min-height: 48px;
    border-radius: 8px;
    background: #0b45bd;
    box-shadow: 0 8px 16px rgba(11, 69, 189, 0.26);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.login-access-form .login-submit__icon {
    display: none;
}

.login-access__divider {
    height: 1px;
    margin: 28px 0 20px;
    background: #dedfe5;
}

.login-create-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #737985;
    font-size: 0.88rem;
}

.login-create-row a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 18px;
    border: 2px solid #0b45bd;
    border-radius: 8px;
    color: #0b45bd;
    background: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
}

.login-access__home {
    display: none;
}

.login-access__logo {
    position: absolute;
    right: clamp(28px, 4vw, 48px);
    bottom: 28px;
    width: 108px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 980px) {
    .login-split-shell {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: auto;
        padding: 28px 24px 18px;
    }

    .login-promo-card {
        max-width: 760px;
        min-height: 330px;
        margin: 0 auto;
    }

    .login-access {
        min-height: auto;
        padding: 34px 24px 100px;
    }
}

@media (max-width: 640px) {
    .login-showcase {
        padding: 18px 14px 12px;
    }

    .login-promo-card {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: auto;
        padding: 18px;
    }

    .login-promo-photo {
        aspect-ratio: 16 / 9;
        max-height: none;
        border-width: 8px;
        border-radius: 18px;
    }

    .login-promo-logo {
        width: 76px;
        margin: 0 0 12px auto;
    }

    .login-promo-content h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .login-promo-badges {
        grid-template-columns: 1fr;
    }

    .login-promo-badges span {
        min-height: 38px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    }

    .login-promo-badges span:last-child {
        border-bottom: 0;
    }

    .login-access {
        padding: 28px 18px 86px;
    }

    .login-tabs {
        margin-bottom: 26px;
    }

    .login-access-form .login-submit {
        width: 100%;
    }

    .login-create-row {
        flex-direction: column;
        text-align: center;
    }

    .login-access__logo {
        right: 50%;
        width: 86px;
        transform: translateX(50%);
    }
}
/* Fit the left promo board to the reference proportions */
.login-promo-card {
    min-height: 420px;
    max-height: 520px;
    padding: clamp(24px, 3vw, 34px);
}

.login-promo-photo {
    max-height: 275px;
    border-width: 12px;
}

.login-promo-logo {
    width: 88px;
    margin-bottom: 18px;
}

.login-promo-kicker {
    margin-bottom: 10px;
    font-size: clamp(0.95rem, 1.35vw, 1.12rem);
}

.login-promo-kicker::after {
    width: 82px;
    height: 5px;
    margin-top: 12px;
}

.login-promo-content h1 {
    margin-bottom: 12px;
    font-size: clamp(2.1rem, 3.75vw, 3.55rem);
}

.login-promo-text {
    font-size: clamp(0.92rem, 1.25vw, 1.05rem);
}

.login-promo-badges {
    margin-top: 18px;
    padding: 10px;
    border-radius: 16px;
}

.login-promo-badges span {
    min-height: 42px;
    padding: 6px;
    font-size: 0.62rem;
}

@media (max-width: 640px) {
    .login-promo-card {
        max-height: none;
    }

    .login-promo-photo {
        max-height: none;
    }
}
/* Login left intro panel matched to the account creation reference */
.login-page .login-split-shell {
    grid-template-columns: minmax(360px, 44%) minmax(420px, 56%);
}

.login-page .login-showcase.login-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-rows: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(42px, 6vw, 78px) clamp(32px, 6vw, 72px);
    color: #ffffff;
    background: linear-gradient(155deg, #010520 0%, #050f4f 58%, #082238 100%);
    overflow: hidden;
    isolation: isolate;
}

.login-page .login-showcase.login-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 62% 78% at 34% 58%, rgba(223, 35, 57, 0.15), transparent 60%),
        radial-gradient(ellipse 58% 70% at 78% 38%, rgba(252, 209, 22, 0.10), transparent 58%);
}

.login-page .login-showcase.login-intro::after {
    content: "";
    position: absolute;
    inset: 48% auto auto 53%;
    width: min(330px, 78vw);
    height: min(330px, 78vw);
    z-index: -1;
    background: url("../img/mlogo.8f115162519d.webp") center / contain no-repeat;
    filter: grayscale(1) brightness(3.1);
    opacity: 0.055;
    transform: translate(-50%, -50%);
}

.login-page .login-showcase__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(100%, 430px);
    max-width: 430px;
    margin: 0;
    z-index: 1;
    transform: translateY(-42px);
}

.login-page .login-showcase__intro .login-logo-frame {
    width: 168px;
    height: 168px;
    margin-bottom: 34px;
    border-radius: 18px;
}

.login-page .login-showcase__intro .login-logo-frame img {
    width: 134px;
    height: 134px;
}

.login-page .login-showcase__intro .login-kicker {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.login-page .login-showcase__intro h1 {
    margin: 8px 0 18px;
    color: #ffffff;
    font-size: clamp(2.85rem, 5.2vw, 4.15rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
}

.login-page .login-showcase__intro p {
    max-width: 410px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.55;
}

.login-page .login-showcase__intro .login-points {
    gap: 10px;
    margin-top: 28px;
}

.login-page .login-showcase__intro .login-points span {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
    font-weight: 850;
}

.login-page .login-showcase__intro .login-hero-note {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 980px) {
    .login-page .login-split-shell {
        grid-template-columns: 1fr;
    }

    .login-page .login-showcase.login-intro {
        min-height: auto;
        padding: 44px 24px;
    }

    .login-page .login-showcase__intro {
        width: min(100%, 560px);
        max-width: 560px;
        transform: translateY(-20px);
    }
}

@media (max-width: 560px) {
    .login-page .login-showcase.login-intro {
        padding: 34px 24px 38px;
    }

    .login-page .login-showcase__intro .login-logo-frame {
        width: 124px;
        height: 124px;
        margin-bottom: 26px;
        border-radius: 16px;
    }

    .login-page .login-showcase__intro .login-logo-frame img {
        width: 98px;
        height: 98px;
    }

    .login-page .login-showcase__intro h1 {
        font-size: clamp(2.35rem, 14vw, 3.15rem);
    }

    .login-page .login-showcase__intro .login-points span {
        min-height: 40px;
        font-size: 0.82rem;
    }
}
/* Show the public navbar on the login page */
body.login-page .site-header {
    display: block;
    position: relative;
    z-index: 20;
}

body.login-page {
    --login-header-offset: calc(var(--topbar-height, 40px) + 90px);
}

.login-page .auth-public-main {
    min-height: calc(100vh - var(--login-header-offset));
    min-height: calc(100dvh - var(--login-header-offset));
}

.login-page .login-split-shell {
    min-height: calc(100vh - var(--login-header-offset));
    min-height: calc(100dvh - var(--login-header-offset));
}

.login-page .login-showcase.login-intro {
    min-height: calc(100vh - var(--login-header-offset));
    min-height: calc(100dvh - var(--login-header-offset));
}

@media (max-width: 980px) {
    .login-page .auth-public-main,
    .login-page .login-split-shell,
    .login-page .login-showcase.login-intro {
        min-height: auto;
    }
}
/* Register and password reset pages aligned to the login reference */
body.register-page,
body.password-reset-page {
    --login-header-offset: calc(var(--topbar-height, 40px) + 90px);
    background: #ffffff;
}

body.register-page .site-header,
body.password-reset-page .site-header {
    display: block;
    position: relative;
    z-index: 20;
}

body.register-page .site-footer,
body.password-reset-page .site-footer {
    display: none;
}

.register-page .auth-public-main,
.password-reset-page .auth-public-main,
.register-page .auth-reference-shell,
.password-reset-page .auth-reference-shell,
.register-page .login-showcase.login-intro,
.password-reset-page .login-showcase.login-intro {
    min-height: calc(100vh - var(--login-header-offset));
    min-height: calc(100dvh - var(--login-header-offset));
}

.auth-reference-shell {
    display: grid;
    width: 100%;
    max-width: none;
    color: #050f4f;
}

.register-reference-shell {
    grid-template-columns: minmax(360px, 40%) minmax(520px, 60%);
}

.password-reset-reference-shell {
    grid-template-columns: minmax(360px, 44%) minmax(420px, 56%);
}

.register-page .login-showcase.login-intro,
.password-reset-page .login-showcase.login-intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-rows: none;
    padding: clamp(42px, 6vw, 78px) clamp(32px, 6vw, 72px);
    color: #ffffff;
    background: linear-gradient(155deg, #010520 0%, #050f4f 58%, #082238 100%);
    overflow: hidden;
    isolation: isolate;
}

.register-page .login-showcase.login-intro::before,
.password-reset-page .login-showcase.login-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 62% 78% at 34% 58%, rgba(223, 35, 57, 0.15), transparent 60%),
        radial-gradient(ellipse 58% 70% at 78% 38%, rgba(252, 209, 22, 0.10), transparent 58%);
}

.register-page .login-showcase.login-intro::after,
.password-reset-page .login-showcase.login-intro::after {
    content: "";
    position: absolute;
    inset: 48% auto auto 53%;
    width: min(330px, 78vw);
    height: min(330px, 78vw);
    z-index: -1;
    background: url("../img/mlogo.8f115162519d.webp") center / contain no-repeat;
    filter: grayscale(1) brightness(3.1);
    opacity: 0.055;
    transform: translate(-50%, -50%);
}

.register-page .login-showcase__intro,
.password-reset-page .login-showcase__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(100%, 430px);
    max-width: 430px;
    margin: 0;
    z-index: 1;
    transform: translateY(-32px);
}

.register-page .login-showcase__intro .login-logo-frame,
.password-reset-page .login-showcase__intro .login-logo-frame {
    width: 132px;
    height: 132px;
    margin-bottom: 28px;
    border-radius: 16px;
}

.register-page .login-showcase__intro .login-logo-frame img,
.password-reset-page .login-showcase__intro .login-logo-frame img {
    width: 104px;
    height: 104px;
}

.register-page .login-showcase__intro h1,
.register-page .login-showcase__intro h2,
.password-reset-page .login-showcase__intro h1,
.password-reset-page .login-showcase__intro h2 {
    margin: 8px 0 18px;
    color: #ffffff;
    font-size: clamp(2.4rem, 4.7vw, 3.65rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
}

.register-page .login-showcase__intro p,
.password-reset-page .login-showcase__intro p {
    max-width: 410px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.55;
}

.register-page .login-showcase__intro .login-points,
.password-reset-page .login-showcase__intro .login-points {
    gap: 10px;
    margin-top: 28px;
}

.register-page .login-showcase__intro .login-points span,
.password-reset-page .login-showcase__intro .login-points span {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
    font-weight: 850;
}

.register-page .login-access,
.password-reset-page .login-access {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(34px, 5vw, 56px) clamp(32px, 4vw, 50px);
    background: #f2f2f5;
}

.register-access__inner {
    width: min(100%, 460px);
    margin: 0 auto;
}

.password-reset-access__inner {
    width: min(100%, 424px);
    margin: 0 auto;
}

.register-page .auth-reference-card,
.password-reset-page .auth-reference-card {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.register-page .auth-reference-card .login-card__header,
.password-reset-page .auth-reference-card .login-card__header {
    margin-bottom: 22px;
}

.register-page .auth-reference-card .login-form,
.password-reset-page .auth-reference-card .login-form {
    gap: 16px;
}

.password-reset-page .auth-reference-card .login-submit {
    justify-self: end;
    width: 190px;
    min-height: 48px;
    border-radius: 8px;
    background: #0b45bd;
    box-shadow: 0 8px 16px rgba(11, 69, 189, 0.26);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .register-reference-shell,
    .password-reset-reference-shell {
        grid-template-columns: 1fr;
    }

    .register-page .auth-public-main,
    .password-reset-page .auth-public-main,
    .register-page .auth-reference-shell,
    .password-reset-page .auth-reference-shell,
    .register-page .login-showcase.login-intro,
    .password-reset-page .login-showcase.login-intro {
        min-height: auto;
    }

    .register-page .login-showcase.login-intro,
    .password-reset-page .login-showcase.login-intro {
        padding: 44px 24px;
    }

    .register-page .login-showcase__intro,
    .password-reset-page .login-showcase__intro {
        width: min(100%, 560px);
        max-width: 560px;
        transform: translateY(-20px);
    }
}

@media (max-width: 560px) {
    .register-page .login-showcase.login-intro,
    .password-reset-page .login-showcase.login-intro {
        padding: 34px 24px 38px;
    }

    .register-page .login-access,
    .password-reset-page .login-access {
        padding: 28px 18px 44px;
    }

    .register-page .login-showcase__intro .login-logo-frame,
    .password-reset-page .login-showcase__intro .login-logo-frame {
        width: 108px;
        height: 108px;
        margin-bottom: 24px;
    }

    .register-page .login-showcase__intro .login-logo-frame img,
    .password-reset-page .login-showcase__intro .login-logo-frame img {
        width: 84px;
        height: 84px;
    }
}
/* Centered login form without left-side intro */
.login-page .login-split-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - var(--login-header-offset));
    min-height: calc(100dvh - var(--login-header-offset));
    padding: clamp(28px, 5vw, 64px) 18px;
    background: #f3f5f8;
}

.login-page .login-access {
    width: min(100%, 500px);
    min-height: auto;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(217, 228, 234, 0.95);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 52px rgba(16, 33, 47, 0.12);
}

.login-page .login-access__inner {
    width: min(100%, 424px);
    margin: 0 auto;
}

.login-page .login-tabs {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
}

.login-page .login-access-form .login-submit {
    width: 100%;
    justify-self: stretch;
}

.login-page .login-create-row {
    flex-direction: column;
    text-align: center;
}

@media (max-width: 560px) {
    .login-page .login-split-shell {
        padding: 18px 12px 28px;
    }

    .login-page .login-access {
        padding: 22px 16px;
    }
}
/* Final centering pass for login page */
.login-page .auth-public-main {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100vh - var(--login-header-offset));
    min-height: calc(100dvh - var(--login-header-offset));
    padding: 0 !important;
    background: #f3f5f8;
}

.login-page .login-split-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    min-height: calc(100vh - var(--login-header-offset));
    min-height: calc(100dvh - var(--login-header-offset));
    padding: clamp(24px, 4vw, 56px) 18px;
    background: #f3f5f8;
}

.login-page .login-access {
    margin: auto;
}
/* Center login fields exactly in the page */
.login-page .auth-public-main {
    display: grid !important;
    place-items: center !important;
    min-height: calc(100vh - var(--login-header-offset)) !important;
    min-height: calc(100dvh - var(--login-header-offset)) !important;
    padding: 0 !important;
    background: #f3f5f8;
}

.login-page .login-split-shell {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - var(--login-header-offset)) !important;
    min-height: calc(100dvh - var(--login-header-offset)) !important;
    padding: clamp(24px, 4vw, 56px) 16px !important;
    background: #f3f5f8;
}

.login-page .login-access {
    width: min(100%, 500px) !important;
    margin: 0 auto !important;
    justify-self: center !important;
}

.login-page .login-access__inner,
.login-page .login-tabs,
.login-page .login-access-form,
.login-page .login-field,
.login-page .login-input,
.login-page .login-access__divider,
.login-page .login-create-row {
    width: 100% !important;
    max-width: 424px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.login-page .login-access-form .login-field-control,
.login-page .login-access-form .login-input input[type="text"],
.login-page .login-access-form .login-input input[type="password"] {
    width: 100% !important;
}