body.master-console {
    margin: 0;
    color: #241725;
    background: #fff7f3;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

/* Master admin login */
.admin-login-auth {
    min-height: 100vh;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #241725;
    background:
        radial-gradient(circle at 8% 10%, rgba(245, 158, 47, .2), transparent 27%),
        radial-gradient(circle at 92% 84%, rgba(143, 63, 113, .18), transparent 30%),
        linear-gradient(135deg, #fff8f4 0%, #fdf0ea 48%, #f8edf4 100%);
}

.admin-login-shell {
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(400px, .92fr);
    overflow: hidden;
    border: 1px solid rgba(242, 215, 205, .95);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 32px 90px rgba(55, 26, 47, .14);
}

.admin-login-overview {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 90% 12%, rgba(245, 158, 47, .3), transparent 26%),
        linear-gradient(150deg, #241725 0%, #52233f 54%, #8f3f71 100%);
}

.admin-login-overview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.admin-login-overview::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -150px;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(232, 93, 63, .2);
}

.admin-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    color: #fff;
    text-decoration: none;
}

.admin-login-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #241725;
    background: linear-gradient(135deg, #f59e2f, #ffd08b);
    box-shadow: 0 16px 30px rgba(245, 158, 47, .2);
}

.admin-login-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.admin-login-brand strong {
    font-size: 18px;
    line-height: 1.1;
}

.admin-login-brand small {
    color: rgba(255, 255, 255, .64);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-login-copy {
    max-width: 550px;
}

.admin-login-kicker,
.admin-login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-login-kicker {
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .08);
}

.admin-login-copy h1 {
    margin: 19px 0 0;
    max-width: 520px;
    font-size: clamp(34px, 3.6vw, 51px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.admin-login-copy p {
    max-width: 510px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.65;
}

.admin-login-preview {
    max-width: 560px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
}

.admin-login-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-login-preview-head > span {
    display: grid;
    gap: 4px;
}

.admin-login-preview-head small,
.admin-login-preview-grid small {
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-login-preview-head strong {
    font-size: 17px;
}

.admin-login-preview-head > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #f59e2f;
    background: rgba(36, 23, 37, .32);
}

.admin-login-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.admin-login-preview-grid article {
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(36, 23, 37, .25);
}

.admin-login-preview-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #241725;
}

.admin-login-preview-icon.coral { background: #f28b72; }
.admin-login-preview-icon.gold { background: #f8b94e; }
.admin-login-preview-icon.rose { background: #e9a2c8; }

.admin-login-preview-grid article > div {
    display: grid;
    gap: 5px;
}

.admin-login-preview-grid strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
}

.admin-login-panel {
    display: grid;
    place-items: center;
    padding: 42px;
    background:
        radial-gradient(circle at 85% 12%, rgba(245, 158, 47, .11), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fffaf7 100%);
}

.admin-login-card {
    width: min(370px, 100%);
}

.admin-login-heading {
    text-align: center;
}

.admin-login-security {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 1px solid #f3d8cd;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #8f3f71, #e85d3f);
    box-shadow: 0 16px 30px rgba(143, 63, 113, .18);
    font-size: 20px;
}

.admin-login-eyebrow {
    min-height: 27px;
    color: #8f3f71;
    background: #fbe8f1;
}

.admin-login-heading h2 {
    margin: 16px 0 0;
    font-size: 32px;
    line-height: 1.1;
}

.admin-login-heading p {
    margin: 9px 0 0;
    color: #796475;
    font-size: 14px;
    line-height: 1.55;
}

.admin-login-errors {
    box-sizing: border-box;
    width: 100%;
    margin: 22px 0 0;
}

.admin-login-form {
    display: grid;
    gap: 17px;
    margin-top: 28px;
}

.admin-login-field {
    display: grid;
    gap: 7px;
}

.admin-login-field label {
    color: #5f475c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.admin-login-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 7px;
    border: 1px solid #edd5cd;
    border-radius: 13px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-login-input:focus-within {
    border-color: #e85d3f;
    box-shadow: 0 0 0 4px rgba(232, 93, 63, .11);
}

.admin-login-input > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #8f3f71;
    background: #fbe8f1;
}

.admin-login-input input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #241725;
    background: transparent;
    font: inherit;
    font-size: 14px;
}

.admin-login-input input::placeholder {
    color: #aa969f;
}

.admin-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #796475;
    font-size: 13px;
}

.admin-login-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.admin-login-options input {
    width: 16px;
    height: 16px;
    accent-color: #8f3f71;
}

.admin-login-options a,
.admin-login-footer a {
    color: #8f3f71;
    font-weight: 900;
    text-decoration: none;
}

.admin-login-submit {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(120deg, #8f3f71, #e85d3f 72%, #f59e2f);
    box-shadow: 0 17px 30px rgba(143, 63, 113, .2);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.admin-login-submit i {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .16);
}

.admin-login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 25px;
    padding-top: 21px;
    border-top: 1px solid #f2d7cd;
    color: #917b89;
    font-size: 12px;
}

@media (max-width: 920px) {
    .admin-login-auth {
        align-items: start;
        padding: 18px;
    }

    .admin-login-shell {
        width: min(620px, 100%);
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .admin-login-panel {
        order: 1;
        padding: 42px 28px;
    }

    .admin-login-overview {
        order: 2;
        padding: 32px;
    }

    .admin-login-copy h1 {
        font-size: clamp(31px, 7vw, 42px);
    }
}

@media (max-width: 560px) {
    .admin-login-auth {
        padding: 10px;
    }

    .admin-login-shell {
        border-radius: 18px;
    }

    .admin-login-panel {
        padding: 28px 18px;
    }

    .admin-login-card {
        width: min(320px, 100%);
    }

    .admin-login-heading h2 {
        font-size: 27px;
    }

    .admin-login-form {
        gap: 14px;
        margin-top: 23px;
    }

    .admin-login-input,
    .admin-login-submit {
        min-height: 44px;
        border-radius: 12px;
    }

    .admin-login-input {
        grid-template-columns: 35px minmax(0, 1fr);
    }

    .admin-login-input > i {
        width: 32px;
        height: 32px;
    }

    .admin-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .admin-login-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .admin-login-overview {
        gap: 24px;
        padding: 24px 20px;
    }

    .admin-login-copy h1 {
        margin-top: 15px;
        font-size: 27px;
    }

    .admin-login-copy p {
        margin-top: 13px;
        font-size: 14px;
    }

    .admin-login-preview {
        padding: 16px;
        border-radius: 17px;
    }

    .admin-login-preview-grid {
        grid-template-columns: 1fr;
    }

    .admin-login-preview-grid article {
        grid-template-columns: 36px 1fr;
        align-items: center;
        gap: 11px;
    }
}

.console-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}

.console-sidebar {
    padding: 24px;
    color: #fff;
    background: linear-gradient(180deg, #241725, #8f3f71);
}

.console-brand {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 28px;
}

.console-sidebar nav {
    display: grid;
    gap: 8px;
}

.console-sidebar a,
.console-logout {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: rgba(255,255,255,.86);
    background: transparent;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.console-sidebar a:hover,
.console-sidebar a.is-active,
.console-logout:hover {
    color: #241725;
    background: #f59e2f;
}

.console-main {
    min-width: 0;
}

.console-topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 28px;
    border-bottom: 1px solid #f2d7cd;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
}

.console-content {
    padding: 28px;
}

.console-page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.console-page-head h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.12;
}

.console-page-head p {
    margin: 8px 0 0;
    color: #796475;
}

.console-grid {
    display: grid;
    gap: 18px;
}

.console-grid.cols-2 {
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1fr);
}

.console-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.console-panel,
.console-stat,
.console-auth-card,
.console-product {
    border: 1px solid #f2d7cd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(36, 23, 37, .07);
}

.console-panel {
    padding: 22px;
}

.console-stat {
    padding: 20px;
}

.console-stat span {
    color: #796475;
    font-weight: 800;
}

.console-stat strong {
    display: block;
    margin-top: 8px;
    color: #e85d3f;
    font-size: 30px;
    line-height: 1;
}

.console-form {
    display: grid;
    gap: 14px;
}

.console-field {
    display: grid;
    gap: 6px;
}

.console-field label {
    font-weight: 850;
    font-size: 13px;
}

.console-field input,
.console-field select,
.console-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #f2d7cd;
    border-radius: 8px;
    color: #241725;
    background: #fffaf7;
    font: inherit;
}

.console-field textarea {
    min-height: 96px;
    resize: vertical;
}

.console-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #e85d3f;
    text-decoration: none;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(232, 93, 63, .2);
}

.console-btn.secondary {
    color: #241725;
    background: #f59e2f;
}

.console-table-wrap {
    overflow-x: auto;
}

.console-table {
    width: 100%;
    border-collapse: collapse;
}

.console-table th,
.console-table td {
    padding: 12px;
    border-bottom: 1px solid #f2d7cd;
    text-align: left;
    vertical-align: top;
}

.console-table th {
    color: #796475;
    font-size: 12px;
    text-transform: uppercase;
}

.console-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #8f3f71;
    background: #fff1ea;
    font-size: 12px;
    font-weight: 900;
}

.console-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #166534;
    background: #dcfce7;
    font-weight: 800;
}

.console-errors {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #991b1b;
    background: #fee2e2;
}

.console-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 15%, rgba(36, 131, 76, .16), transparent 32%),
        radial-gradient(circle at 92% 0%, rgba(34, 197, 94, .18), transparent 30%),
        linear-gradient(135deg, #cdeae3 0%, #eef6f8 46%, #d7f0e3 100%);
}

.console-auth-page.portal-auth {
    background:
        radial-gradient(circle at 18% 15%, rgba(36, 131, 76, .16), transparent 32%),
        radial-gradient(circle at 92% 0%, rgba(34, 197, 94, .18), transparent 30%),
        linear-gradient(135deg, #cdeae3 0%, #eef6f8 46%, #d7f0e3 100%);
}

.console-auth-shell {
    width: min(1160px, 100%);
    min-height: min(700px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, .95fr);
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 88px rgba(16, 55, 39, .16);
}

.console-auth-shell.register-shell {
    width: min(1220px, 100%);
    grid-template-columns: minmax(0, .82fr) minmax(520px, 1fr);
}

.register-shell .console-auth-card {
    padding-inline: 44px;
}

.register-shell .console-auth-heading {
    width: min(620px, 100%);
}

.console-auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 100%;
    padding: 36px 42px;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(2, 24, 24, .96), rgba(4, 92, 42, .92)),
        radial-gradient(circle at 100% 90%, rgba(95, 193, 122, .38), transparent 28%);
    background-size: auto, auto;
    background-position: center;
}

.console-auth-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .65;
    pointer-events: none;
}

.console-auth-logo {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 20px 42px rgba(0,0,0,.12);
    color: #fff;
    text-decoration: none;
    font-size: 19px;
    font-weight: 950;
}

.console-auth-logo span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #064e2f;
    background: #fff;
}

.console-auth-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 14px;
    color: #f59e2f;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.console-auth-panel h1 {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 0 16px;
    font-size: clamp(40px, 4.2vw, 56px);
    line-height: 1.06;
    letter-spacing: 0;
    text-transform: uppercase;
}

.console-auth-panel p {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 17px;
    line-height: 1.52;
}

.console-auth-info-card {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(255,255,255,.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}

.console-auth-info-card strong {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.84);
    font-weight: 850;
}

.console-auth-info-card p {
    margin-top: 18px;
    font-size: 15px;
}

.console-auth-socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.console-auth-socials span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,.12);
}

.console-auth-card {
    width: 100%;
    align-self: stretch;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 44px 54px;
    border: 0;
    box-shadow: none;
}

.console-auth-form-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #15334a;
    font-weight: 950;
}

.console-auth-form-logo span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #20a852;
    font-size: 15px;
}

.console-auth-heading {
    width: min(470px, 100%);
    margin-bottom: 26px;
    text-align: center;
}

.console-auth-heading p {
    margin: 0;
    color: #75849b;
    font-size: 16px;
}

.console-auth-card .console-form {
    width: min(470px, 100%);
    gap: 14px;
}

.console-auth-card .console-field {
    gap: 0;
}

.console-auth-card .console-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.auth-input {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    padding: 7px;
    border: 1px solid #bcded5;
    border-radius: 17px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input:focus-within {
    border-color: #28a957;
    box-shadow: 0 0 0 4px rgba(40, 169, 87, .1);
}

.auth-input span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #20a852;
    background: #e5f7eb;
}

.auth-input input {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #203044;
    font-weight: 750;
}

.auth-input input:focus {
    outline: 0;
}

.console-auth-card .console-btn {
    width: 100%;
    min-height: 58px;
    gap: 8px;
    font-size: 16px;
    border-radius: 17px;
    background: linear-gradient(90deg, #20a852, #63bf7b);
    box-shadow: 0 18px 34px rgba(32, 168, 82, .2);
}

.console-auth-card .console-btn.secondary {
    color: #166534;
    background: #e8f8ee;
    box-shadow: none;
}

.console-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #75849b;
    font-weight: 850;
}

.console-auth-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.console-auth-options input {
    width: 18px;
    height: 18px;
}

.console-auth-options a {
    color: #20a852;
    text-decoration: none;
    font-weight: 950;
}

.console-auth-footer {
    width: min(470px, 100%);
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e4eee9;
    text-align: center;
}

.console-auth-footer a {
    color: #8f3f71;
    font-weight: 850;
    text-decoration: none;
}

.auth-grid-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(620px, 100%) !important;
}

.auth-grid-form .auth-span {
    grid-column: 1 / -1;
}

body.master-console:has(.nucleus-auth) {
    background: #e9e9ec;
}

.nucleus-auth.console-auth-page {
    min-height: 100vh;
    padding: 52px;
    background: #e9e9ec;
}

.nucleus-shell.console-auth-shell {
    width: min(1320px, 100%);
    min-height: min(760px, calc(100vh - 104px));
    grid-template-columns: minmax(390px, 440px) minmax(0, 1fr);
    border: 1px solid #d7d7de;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 32px 70px rgba(18, 24, 38, .14);
}

.nucleus-shell.register-shell {
    width: min(1320px, 100%);
    grid-template-columns: minmax(390px, 440px) minmax(0, 1fr);
}

.nucleus-shell .console-auth-panel {
    min-height: 100%;
    padding: 36px;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .08) 45%, rgba(0, 0, 0, .72) 100%),
        url("/images/auth-reference.webp");
    background-size: 1320px auto;
    background-position: left center;
    color: #fff;
}

.nucleus-shell .console-auth-panel::after {
    display: none;
}

.nucleus-shell .console-auth-logo {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.nucleus-mark {
    position: relative;
    width: 26px;
    height: 26px;
    display: inline-block;
}

.nucleus-mark::before,
.nucleus-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, #fff 0 24%, transparent 25%),
        radial-gradient(circle at 75% 25%, #fff 0 24%, transparent 25%),
        radial-gradient(circle at 25% 75%, #fff 0 24%, transparent 25%),
        radial-gradient(circle at 75% 75%, #fff 0 24%, transparent 25%);
}

.nucleus-shell .console-auth-logo .nucleus-mark {
    background: transparent;
}

.nucleus-shell .console-auth-quote {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.nucleus-shell .console-auth-quote h2 {
    margin: 0 0 28px;
    color: #fff;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: 0;
}

.nucleus-shell .console-auth-quote p {
    margin: 0 0 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 850;
}

.nucleus-shell .console-auth-quote span {
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
}

.nucleus-shell .console-auth-card {
    padding: 64px;
    align-content: center;
}

.nucleus-shell .console-auth-heading {
    width: min(360px, 100%);
    margin-bottom: 28px;
}

.nucleus-shell .console-auth-heading h1 {
    margin: 0 0 8px;
    color: #050609;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    text-align: center;
}

.nucleus-shell .console-auth-heading p {
    color: #6f6f78;
    font-size: 14px;
    line-height: 1.55;
}

.nucleus-shell .console-form {
    width: min(360px, 100%);
    gap: 12px;
}

.nucleus-shell .console-field {
    gap: 4px;
}

.nucleus-shell .console-field > label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    color: #74717a;
    font-size: 12px;
    font-weight: 650;
}

.nucleus-shell .console-field input {
    width: 100%;
    min-height: 44px;
    padding: 7px 13px;
    border: 1px solid #dedee6;
    border-radius: 7px;
    color: #111827;
    background: #fff;
    font-size: 14px;
    font-weight: 650;
}

.nucleus-shell .console-field input:focus {
    border-color: #6f4df6;
    box-shadow: 0 0 0 3px rgba(111, 77, 246, .22);
    outline: 0;
}

.nucleus-shell .console-auth-forgot {
    display: inline-flex;
    width: fit-content;
    color: #5f42d8;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.nucleus-shell .console-auth-options {
    min-height: 42px;
    color: #74717a;
    font-size: 14px;
    font-weight: 500;
}

.auth-switch {
    position: relative;
    display: inline-flex;
    width: 54px;
    height: 30px;
}

.auth-switch input {
    position: absolute;
    opacity: 0;
}

.auth-switch span {
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #d8d8e2;
    transition: background .2s ease;
}

.auth-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
    transition: transform .2s ease;
}

.auth-switch input:checked + span {
    background: #6f4df6;
}

.auth-switch input:checked + span::after {
    transform: translateX(24px);
}

.nucleus-shell .console-btn {
    min-height: 44px;
    border-radius: 19px;
    color: #fff;
    background: #6f4df6;
    box-shadow: none;
    font-size: 14px;
    font-weight: 850;
}

.nucleus-shell .console-btn:hover {
    background: #5e3fe0;
}

.auth-divider {
    width: min(360px, 100%);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    margin: 28px 0;
    color: #77747d;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: #ececf1;
}

.auth-google {
    width: min(360px, 100%);
    min-height: 44px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    border-radius: 19px;
    color: #050609;
    background: #f6f6f7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
}

.auth-google span {
    justify-self: center;
    color: #4285f4;
    font-size: 22px;
    font-weight: 900;
}

.nucleus-shell .console-auth-footer {
    width: min(360px, 100%);
    margin-top: 34px;
    padding-top: 0;
    border-top: 0;
    color: #74717a;
    font-size: 12px;
}

.nucleus-shell .console-auth-footer a {
    color: #5f42d8;
    font-weight: 850;
}

.nucleus-shell .auth-grid-form {
    width: min(520px, 100%) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nucleus-shell.register-shell .console-auth-heading,
.nucleus-shell.register-shell .console-auth-footer {
    width: min(520px, 100%);
}

.nucleus-shell.register-shell .console-auth-card {
    padding-inline: 56px;
}

.ourportal-auth.console-auth-page {
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at 85% 8%, rgba(89, 186, 128, .24), transparent 24%),
        radial-gradient(circle at 10% 86%, rgba(51, 180, 172, .22), transparent 28%),
        linear-gradient(135deg, #d7eee8 0%, #f3f8fb 48%, #c9ecd9 100%);
}

.ourportal-shell.console-auth-shell {
    width: min(1300px, calc(100vw - 48px));
    min-height: min(760px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: minmax(420px, .93fr) minmax(460px, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(22, 54, 73, .16);
}

.ourportal-shell.register-shell {
    width: min(1300px, calc(100vw - 48px));
    grid-template-columns: minmax(420px, .93fr) minmax(460px, 1fr);
}

.ourportal-shell .console-auth-panel {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 46px 48px;
    color: #fff;
    background:
        radial-gradient(circle at 105% 90%, rgba(92, 179, 118, .52), transparent 30%),
        linear-gradient(115deg, #061d26 0%, #064322 100%);
}

.ourportal-shell .console-auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .55;
}

.ourportal-shell .console-auth-panel::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    filter: blur(2px);
}

.ourportal-shell .console-auth-logo {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    text-decoration: none;
}

.ourportal-logo-mark,
.ourportal-form-logo {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #16a34a;
    border: 3px solid #fff;
}

.ourportal-logo-mark {
    width: 46px;
    height: 46px;
    font-size: 26px;
}

.ourportal-welcome {
    position: relative;
    z-index: 1;
}

.ourportal-welcome h1 {
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(48px, 5.4vw, 74px);
    line-height: .98;
    letter-spacing: -1px;
    font-weight: 950;
}

.ourportal-welcome p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 650;
}

.ourportal-info-card {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    color: rgba(255,255,255,.74);
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
}

.ourportal-info-card strong {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    font-weight: 850;
}

.ourportal-info-card p {
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.55;
}

.ourportal-info-card p:last-of-type {
    margin-bottom: 0;
}

.ourportal-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ourportal-socials span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.12);
    font-size: 18px;
}

.ourportal-shell .console-auth-card {
    align-self: stretch;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 66px 72px;
    width: min(620px, 100%);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 34px;
    box-shadow: 0 28px 50px rgba(20, 40, 56, .12);
}

.ourportal-shell .console-auth-heading {
    width: min(560px, 100%);
    margin: 0 0 32px;
    text-align: center;
}

.ourportal-shell .ourportal-form-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    font-size: 34px;
}

.ourportal-shell .console-auth-heading p {
    margin: 0;
    color: #7e8aa1;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 650;
}

.ourportal-shell .console-form {
    width: min(520px, 100%);
    display: grid;
    gap: 20px;
}

.ourportal-shell .console-field {
    gap: 0;
}

.ourportal-shell .console-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ourportal-input {
    min-height: 68px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 8px 18px 8px 10px;
    border: 1px solid #b8d9d4;
    border-radius: 18px;
    background: #fff;
}

.ourportal-input:focus-within {
    border-color: #22a950;
    box-shadow: 0 0 0 4px rgba(34, 169, 80, .08);
}

.ourportal-input span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #1baa50;
    background: #e5f7ea;
    font-size: 21px;
}

.ourportal-input input {
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    color: #536070;
    background: transparent;
    font-size: 18px;
    font-weight: 800;
}

.ourportal-input input::placeholder {
    color: #8a99b2;
}

.ourportal-input input:focus {
    outline: 0;
}

.ourportal-shell .console-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 2px 0 8px;
    color: #74829a;
    font-size: 16px;
    font-weight: 850;
}

.ourportal-shell .console-auth-options label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ourportal-shell .console-auth-options input {
    width: 19px;
    height: 19px;
}

.ourportal-shell .console-auth-options a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 950;
}

.ourportal-shell .console-btn {
    width: 100%;
    min-height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(90deg, #21a84f, #61bf7c);
    box-shadow: 0 18px 34px rgba(33, 168, 79, .16);
    font-size: 18px;
    font-weight: 950;
}

.ourportal-shell .console-auth-footer {
    width: min(520px, 100%);
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e5eeeb;
    color: #8190a8;
    text-align: center;
    font-size: 16px;
    font-weight: 650;
}

.ourportal-shell.register-shell .console-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ourportal-shell.register-shell .auth-span {
    grid-column: 1 / -1;
}

.console-product {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.console-product h3 {
    margin: 0;
}

.console-product p {
    margin: 0;
    color: #796475;
}

@media (max-width: 900px) {
    .console-shell,
    .console-auth-shell,
    .console-grid.cols-2,
    .console-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .console-auth-shell,
    .console-auth-shell.register-shell {
        width: min(560px, 100%);
    }

    .console-auth-panel {
        min-height: 360px;
    }

    .console-auth-panel h1 {
        font-size: 40px;
    }

    .nucleus-auth.console-auth-page {
        padding: 24px;
    }

    .nucleus-shell.console-auth-shell,
    .nucleus-shell.register-shell {
        width: min(560px, 100%);
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .nucleus-shell .console-auth-panel {
        min-height: 420px;
        background-size: 920px auto;
        background-position: left center;
    }

    .nucleus-shell .console-auth-card {
        padding: 44px 28px;
    }

    .nucleus-shell .auth-grid-form {
        grid-template-columns: 1fr;
        width: min(360px, 100%) !important;
    }

    .nucleus-shell.register-shell .console-auth-heading,
    .nucleus-shell.register-shell .console-auth-footer {
        width: min(360px, 100%);
    }

    .console-sidebar {
        position: static;
    }

    .console-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .console-topbar,
    .console-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .console-content {
        padding: 20px;
    }

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

    .console-auth-page {
        padding: 14px;
    }

    .console-auth-shell {
        border-radius: 12px;
    }

    .console-auth-panel,
    .console-auth-card {
        padding: 24px;
    }

    .console-auth-panel {
        min-height: auto;
    }

    .console-auth-panel h1 {
        font-size: 28px;
    }

    .console-auth-info-card {
        display: none;
    }

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

    .nucleus-auth.console-auth-page {
        padding: 14px;
    }

    .nucleus-shell.console-auth-shell {
        border-radius: 10px;
    }

    .nucleus-shell .console-auth-panel {
        min-height: 360px;
        padding: 26px;
    }

    .nucleus-shell .console-auth-logo {
        font-size: 20px;
    }

    .nucleus-shell .console-auth-quote h2 {
        font-size: 24px;
    }

    .nucleus-shell .console-auth-card {
        padding: 34px 22px;
    }
}

/* OurPortal reference auth screen - final override */
.ourportal-auth.console-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 12% 20%, rgba(13, 99, 58, .16), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(39, 176, 87, .18), transparent 32%),
        linear-gradient(120deg, #e7f7f0 0%, #f8fbff 45%, #c8ead7 100%);
    color: #0f172a;
}

.ourportal-shell.console-auth-shell,
.ourportal-shell.console-auth-shell.register-shell {
    width: min(1344px, calc(100vw - 72px));
    min-height: min(884px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 31px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(25, 55, 74, .16);
}

.ourportal-shell .console-auth-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-height: 0;
    padding: 54px 58px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 108% 94%, rgba(111, 205, 138, .54), transparent 34%),
        linear-gradient(105deg, rgba(0, 26, 36, .98) 0%, rgba(0, 62, 46, .98) 48%, rgba(0, 114, 44, .96) 100%);
}

.ourportal-shell .console-auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 24px 24px;
}

.ourportal-shell .console-auth-panel::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -140px;
    z-index: -1;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(101, 199, 126, .24);
    filter: blur(2px);
}

.ourportal-shell .console-auth-logo {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin: 0 0 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    text-decoration: none;
}

.ourportal-logo-mark,
.ourportal-form-logo {
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #1da64d;
    border: 3px solid #188934;
}

.ourportal-logo-mark {
    width: 56px;
    height: 56px;
    font-size: 30px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

.ourportal-welcome {
    position: relative;
    z-index: 1;
}

.ourportal-welcome h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(58px, 4.85vw, 74px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -1px;
}

.ourportal-welcome p {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 21px;
    line-height: 1.55;
    font-weight: 600;
}

.ourportal-info-card {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-top: 42px;
    padding: 30px 28px 26px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 26px;
    background: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.ourportal-info-card strong {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .76);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.ourportal-info-card p {
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: 19px;
    line-height: 1.48;
    font-weight: 600;
}

.ourportal-info-card b {
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
}

.ourportal-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ourportal-socials span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 22px;
}

.ourportal-shell .console-auth-card {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 0;
    padding: 68px 72px;
    background: #fff;
}

.ourportal-shell .console-auth-heading {
    width: min(560px, 100%);
    margin: 0 0 38px;
    text-align: center;
}

.ourportal-form-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    font-size: 40px;
    box-shadow: none;
}

.ourportal-shell .console-auth-heading h1 {
    display: none;
}

.ourportal-shell .console-auth-heading p {
    max-width: 610px;
    margin: 0 auto;
    color: #7b879d;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 650;
}

.ourportal-shell .console-errors {
    width: min(560px, 100%);
    margin: 0 0 16px;
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.ourportal-shell .console-form {
    width: min(560px, 100%);
    display: grid;
    gap: 22px;
}

.ourportal-shell .console-field {
    display: block;
}

.ourportal-shell .console-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ourportal-input {
    min-height: 70px;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 22px;
    border: 1px solid #d4e9e0;
    border-radius: 24px;
    background: #ffffff;
}

.ourportal-input span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #e6f8ef;
    color: #1ea44f;
    font-size: 22px;
}

.ourportal-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #697486;
    font-size: 20px;
    font-weight: 800;
}

.ourportal-input input::placeholder {
    color: #91a0b7;
    opacity: 1;
}

.ourportal-shell .console-auth-options {
    width: min(560px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
}

.ourportal-shell .console-auth-options label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.ourportal-shell .console-auth-options input {
    width: 21px;
    height: 21px;
    accent-color: #24aa56;
}

.ourportal-shell .console-auth-options a {
    color: #16a34a;
    font-weight: 950;
    text-decoration: none;
}

.ourportal-shell .console-btn {
    width: min(560px, 100%);
    min-height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(90deg, #14993f 0%, #1daf49 100%);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(20, 80, 45, .14);
    font-size: 18px;
    font-weight: 900;
    text-transform: none;
}

.ourportal-shell .console-auth-footer {
    width: min(560px, 100%);
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #e9f0ee;
    color: #7d8ea4;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.ourportal-shell .console-auth-footer a {
    color: #16a34a;
    font-weight: 900;
    text-decoration: none;
}

.ourportal-shell.register-shell .auth-grid-form {
    width: min(640px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ourportal-shell.register-shell .console-field > input {
    min-height: 58px;
    width: 100%;
    border: 1px solid #b9ded8;
    border-radius: 18px;
    background: #fff;
    color: #697486;
    font-size: 16px;
    font-weight: 750;
}

.ourportal-shell.register-shell .auth-span {
    grid-column: 1 / -1;
    width: 100%;
}

@media (max-width: 1050px) {
    .ourportal-auth.console-auth-page {
        align-items: start;
        padding: 18px;
    }

    .ourportal-shell.console-auth-shell,
    .ourportal-shell.console-auth-shell.register-shell {
        width: min(620px, 100%);
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .ourportal-shell .console-auth-panel {
        min-height: auto;
        padding: 34px 28px;
    }

    .ourportal-shell .console-auth-logo {
        width: 74px;
        height: 74px;
        margin-bottom: 28px;
        border-radius: 20px;
    }

    .ourportal-logo-mark {
        width: 48px;
        height: 48px;
        font-size: 25px;
    }

    .ourportal-welcome h1 {
        font-size: clamp(42px, 11vw, 58px);
    }

    .ourportal-welcome p {
        font-size: 18px;
    }

    .ourportal-info-card {
        margin-top: 28px;
        padding: 22px;
    }

    .ourportal-shell .console-auth-card {
        padding: 44px 28px;
    }
}

@media (max-width: 560px) {
    .ourportal-auth.console-auth-page {
        display: block;
        padding: 12px;
    }

    .ourportal-shell.console-auth-shell,
    .ourportal-shell.console-auth-shell.register-shell {
        width: 100%;
        border-radius: 18px;
    }

    .ourportal-shell .console-auth-panel {
        padding: 26px 20px;
    }

    .ourportal-welcome h1 {
        font-size: 40px;
        letter-spacing: -.4px;
    }

    .ourportal-welcome p,
    .ourportal-info-card p {
        font-size: 16px;
    }

    .ourportal-info-card strong {
        font-size: 15px;
    }

    .ourportal-socials span {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .ourportal-shell .console-auth-card {
        padding: 34px 18px;
    }

    .ourportal-form-logo {
        width: 66px;
        height: 66px;
        font-size: 34px;
    }

    .ourportal-shell .console-auth-heading p {
        font-size: 16px;
    }

    .ourportal-input {
        min-height: 62px;
        grid-template-columns: 44px 1fr;
        gap: 13px;
        padding: 8px 14px;
        border-radius: 18px;
    }

    .ourportal-input span {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .ourportal-input input {
        font-size: 17px;
    }

    .ourportal-shell .console-auth-options {
        align-items: flex-start;
        flex-direction: column;
        font-size: 15px;
    }

    .ourportal-shell .console-btn {
        min-height: 62px;
        border-radius: 18px;
        font-size: 18px;
    }

    .ourportal-shell .console-auth-footer {
        font-size: 15px;
    }

    .ourportal-shell.register-shell .auth-grid-form {
        grid-template-columns: 1fr;
    }
}

/* Portal login redesign */
.portal-login-auth.console-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 47, .16), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(143, 63, 113, .16), transparent 30%),
        linear-gradient(135deg, #fff7f3 0%, #fff1ea 44%, #f8ecf4 100%);
}

.portal-login-shell {
    width: min(1220px, 100%);
    min-height: min(780px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(320px, 1.02fr) minmax(420px, .98fr);
    border: 1px solid rgba(242, 215, 205, .95);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 28px 80px rgba(55, 26, 47, .12);
    backdrop-filter: blur(14px);
}

.portal-login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 47, .32), transparent 28%),
        linear-gradient(160deg, #241725 0%, #6a2d57 58%, #8f3f71 100%);
}

.portal-login-showcase::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(245, 158, 47, .18);
    filter: blur(8px);
}

.portal-login-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: #fff;
    text-decoration: none;
    font-size: 19px;
    font-weight: 900;
}

.portal-login-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #241725;
    background: linear-gradient(135deg, #f59e2f, #ffcf87);
    box-shadow: 0 14px 28px rgba(245, 158, 47, .22);
}

.portal-login-copy,
.portal-login-summary {
    position: relative;
    z-index: 1;
}

.portal-login-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .84);
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-login-copy h1 {
    max-width: 560px;
    margin: 20px 0 0;
    font-size: clamp(29px, 2.7vw, 40px);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.portal-login-copy p {
    max-width: 540px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.65;
}

.portal-login-summary {
    max-width: 560px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.portal-login-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-login-summary-head strong {
    font-size: 18px;
}

.portal-login-summary-head span {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.portal-login-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.portal-login-metrics article {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
}

.portal-login-metrics small {
    display: block;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.portal-login-metrics strong {
    display: block;
    margin-top: 14px;
    font-size: 34px;
    line-height: 1;
}

.portal-login-metrics span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.5;
}

.portal-login-note {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(36, 23, 37, .26);
}

.portal-login-note i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #241725;
    background: #f59e2f;
}

.portal-login-note p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.6;
}

.portal-login-panel {
    display: grid;
    place-items: center;
    padding: 38px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 247, 243, .96));
}

.portal-login-card {
    width: min(460px, 100%);
    display: grid;
    justify-items: center;
    padding: 36px;
    border: 1px solid #f2d7cd;
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 52px rgba(36, 23, 37, .08);
}

.portal-login-head {
    width: min(344px, 100%);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 26px;
    text-align: center;
}

.portal-login-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #8f3f71;
    background: #fbe8f1;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.portal-login-head h2 {
    margin: 16px 0 0;
    color: #241725;
    font-size: 32px;
    line-height: 1.1;
}

.portal-login-head p {
    margin: 10px 0 0;
    color: #796475;
    font-size: 15px;
    line-height: 1.6;
}

.portal-login-form,
.portal-login-card .console-errors,
.portal-login-footer {
    width: min(344px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.portal-login-form .console-field {
    gap: 8px;
}

.portal-login-form .console-field label {
    color: #5f475c;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.portal-login-form .console-field input {
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.portal-login-form .console-field input:focus {
    outline: 0;
    border-color: #e85d3f;
    box-shadow: 0 0 0 4px rgba(232, 93, 63, .12);
}

.portal-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #796475;
    font-size: 14px;
}

.portal-login-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.portal-login-check input {
    width: 16px;
    height: 16px;
    accent-color: #8f3f71;
}

.portal-login-row a,
.portal-login-footer a {
    color: #8f3f71;
    font-weight: 900;
    text-decoration: none;
}

.portal-login-submit.console-btn {
    min-height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e85d3f, #f59e2f);
    box-shadow: 0 16px 28px rgba(232, 93, 63, .2);
    font-size: 14px;
}

.portal-login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #f2d7cd;
    color: #796475;
    font-size: 14px;
    text-align: center;
}

.portal-register-shell {
    min-height: min(860px, calc(100vh - 56px));
}

.portal-register-card {
    width: min(760px, 100%);
}

.portal-register-head,
.portal-register-card .console-errors,
.portal-register-footer {
    width: min(720px, 100%);
}

.portal-register-form {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-left: auto;
    margin-right: auto;
}

.portal-register-form .console-field {
    min-width: 0;
    gap: 8px;
}

.portal-register-form .console-field label {
    color: #5f475c;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.portal-register-form .console-field input {
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #f2d7cd;
    border-radius: 14px;
    color: #241725;
    background: #fff;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.portal-register-form .console-field input:focus {
    outline: 0;
    border-color: #e85d3f;
    box-shadow: 0 0 0 4px rgba(232, 93, 63, .12);
}

.portal-register-submit {
    grid-column: 1 / -1;
}

.portal-register-footer {
    justify-content: center;
}

@media (max-width: 980px) {
    .portal-login-auth.console-auth-page {
        padding: 18px;
    }

    .portal-login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .portal-login-showcase,
    .portal-login-panel {
        padding: 28px;
    }

    .portal-login-copy h1 {
        font-size: clamp(28px, 6vw, 34px);
    }

    .portal-login-card {
        width: min(560px, 100%);
    }

    .portal-register-card,
    .portal-register-head,
    .portal-register-card .console-errors,
    .portal-register-footer,
    .portal-register-form {
        width: min(540px, 100%);
    }
}

@media (max-width: 560px) {
    .portal-login-auth.console-auth-page {
        padding: 10px;
    }

    .portal-login-shell {
        border-radius: 18px;
    }

    .portal-login-showcase {
        order: 2;
        gap: 20px;
        padding: 18px 18px 20px;
    }

    .portal-login-panel {
        order: 1;
        padding: 18px;
    }

    .portal-login-summary,
    .portal-login-card {
        padding: 18px;
        border-radius: 18px;
    }

    .portal-login-brand {
        gap: 10px;
        font-size: 16px;
    }

    .portal-login-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .portal-login-kicker {
        min-height: 28px;
        padding: 0 10px;
        font-size: 11px;
    }

    .portal-login-copy h1 {
        max-width: 320px;
        margin-top: 14px;
        font-size: 23px;
        line-height: 1.16;
    }

    .portal-login-copy p {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.55;
    }

    .portal-login-summary {
        padding: 16px;
    }

    .portal-login-summary-head strong {
        font-size: 16px;
    }

    .portal-login-summary-head span {
        font-size: 11px;
    }

    .portal-login-metrics article {
        padding: 14px;
        border-radius: 14px;
    }

    .portal-login-metrics strong {
        font-size: 28px;
    }

    .portal-login-metrics span,
    .portal-login-note p {
        font-size: 13px;
    }

    .portal-login-note {
        grid-template-columns: 36px 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 14px;
    }

    .portal-login-note i {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .portal-login-head,
    .portal-login-form,
    .portal-login-card .console-errors,
    .portal-login-footer {
        width: min(320px, 100%);
    }

    .portal-login-head {
        margin-bottom: 20px;
    }

    .portal-login-head h2 {
        font-size: 28px;
    }

    .portal-login-head p {
        font-size: 14px;
        line-height: 1.5;
    }

    .portal-login-form .console-field {
        gap: 6px;
    }

    .portal-login-form .console-field label {
        font-size: 11px;
    }

    .portal-login-form .console-field input {
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 14px;
    }

    .portal-login-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .portal-login-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
    }

    .portal-login-submit.console-btn {
        min-height: 42px;
        border-radius: 12px;
        font-size: 14px;
    }

    .portal-login-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 18px;
        padding-top: 18px;
        font-size: 13px;
        text-align: center;
    }

    .portal-register-shell {
        min-height: auto;
    }

    .portal-register-head,
    .portal-register-card .console-errors,
    .portal-register-footer,
    .portal-register-form {
        width: min(320px, 100%);
    }

    .portal-register-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .portal-register-form .console-field {
        gap: 6px;
    }

    .portal-register-form .console-field label {
        font-size: 11px;
    }

    .portal-register-form .console-field input {
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 14px;
    }

    .portal-register-footer {
        align-items: center;
    }
}

/* Client portal gateway auth */
.portal-gateway {
    --gateway-ink: #241725;
    --gateway-plum: #8f3f71;
    --gateway-coral: #e85d3f;
    --gateway-gold: #f59e2f;
    --gateway-line: #efd9d0;
    min-height: 100vh;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--gateway-ink);
    background:
        radial-gradient(circle at 5% 5%, rgba(245, 158, 47, .18), transparent 27%),
        radial-gradient(circle at 96% 92%, rgba(143, 63, 113, .17), transparent 30%),
        linear-gradient(135deg, #fff9f5 0%, #fdf1eb 48%, #f8edf4 100%);
}

.portal-gateway-shell {
    width: min(1240px, 100%);
    min-height: min(820px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(239, 217, 208, .94);
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 30px 90px rgba(55, 26, 47, .13);
}

.portal-gateway-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
    padding: 14px 28px;
    border-bottom: 1px solid var(--gateway-line);
    background: rgba(255, 255, 255, .86);
}

.portal-gateway-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gateway-ink);
    text-decoration: none;
}

.portal-gateway-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--gateway-plum), var(--gateway-coral));
    box-shadow: 0 13px 24px rgba(143, 63, 113, .18);
}

.portal-gateway-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.portal-gateway-brand strong {
    font-size: 17px;
    line-height: 1.1;
}

.portal-gateway-brand small {
    color: #8a7180;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.portal-gateway-topbar > p {
    margin: 0;
    color: #7d6574;
    font-size: 13px;
}

.portal-gateway-topbar a:not(.portal-gateway-brand) {
    color: var(--gateway-plum);
    font-weight: 900;
    text-decoration: none;
}

.portal-gateway-content {
    min-height: calc(min(820px, 100vh - 48px) - 79px);
    display: grid;
    grid-template-columns: minmax(390px, .87fr) minmax(500px, 1.13fr);
}

.portal-gateway-form-panel {
    display: grid;
    align-content: center;
    padding: 52px 58px;
    background: #fff;
}

.portal-gateway-heading,
.portal-gateway-form,
.portal-gateway-errors,
.portal-gateway-form-footer {
    width: min(390px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.portal-gateway-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--gateway-plum);
    background: #fbe8f1;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.portal-gateway-heading h1 {
    margin: 17px 0 0;
    font-size: clamp(31px, 3.1vw, 43px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.portal-gateway-heading p {
    margin: 13px 0 0;
    color: #796475;
    font-size: 15px;
    line-height: 1.6;
}

.portal-gateway-errors {
    box-sizing: border-box;
    margin-top: 20px;
    margin-bottom: 0;
}

.portal-gateway-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.portal-gateway-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.portal-gateway-field label {
    color: #5f475c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.portal-gateway-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 7px;
    border: 1px solid var(--gateway-line);
    border-radius: 13px;
    background: #fffdfa;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.portal-gateway-input:focus-within {
    border-color: var(--gateway-coral);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 93, 63, .1);
}

.portal-gateway-input > i {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--gateway-plum);
    background: #fbe8f1;
}

.portal-gateway-input input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--gateway-ink);
    background: transparent;
    font: inherit;
    font-size: 14px;
}

.portal-gateway-input input::placeholder {
    color: #aa969f;
}

.portal-gateway-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #796475;
    font-size: 12px;
}

.portal-gateway-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.portal-gateway-options input {
    width: 16px;
    height: 16px;
    accent-color: var(--gateway-plum);
}

.portal-gateway-options a {
    color: var(--gateway-plum);
    font-weight: 900;
    text-decoration: none;
}

.portal-gateway-submit {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 17px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(120deg, var(--gateway-plum), var(--gateway-coral) 72%, var(--gateway-gold));
    box-shadow: 0 17px 30px rgba(143, 63, 113, .19);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.portal-gateway-submit i {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .16);
}

.portal-gateway-form-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    margin-top: 25px;
    padding-top: 19px;
    border-top: 1px solid var(--gateway-line);
    color: #8c7583;
    font-size: 11px;
}

.portal-gateway-form-footer i {
    color: var(--gateway-plum);
}

.portal-gateway-preview {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    padding: 42px 46px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 8%, rgba(245, 158, 47, .3), transparent 28%),
        linear-gradient(145deg, #241725 0%, #5c2849 58%, #8f3f71 100%);
}

.portal-gateway-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .18;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(135deg, #000, transparent 75%);
}

.portal-gateway-preview-copy > span {
    color: #f7b44e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portal-gateway-preview-copy h2 {
    max-width: 620px;
    margin: 12px 0 0;
    font-size: clamp(25px, 2.6vw, 35px);
    line-height: 1.13;
    letter-spacing: -.025em;
}

.portal-workspace-window {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: #fff9f5;
    box-shadow: 0 24px 60px rgba(20, 9, 17, .28);
    transform: rotate(-1deg);
}

.portal-workspace-bar {
    min-height: 42px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-bottom: 1px solid #ecd8d0;
    color: #7d6574;
    background: #fff;
}

.portal-workspace-bar > span {
    display: flex;
    gap: 5px;
}

.portal-workspace-bar > span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7c5cc;
}

.portal-workspace-bar small {
    font-size: 10px;
    font-weight: 800;
}

.portal-workspace-bar b {
    justify-self: end;
    padding: 4px 7px;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: 9px;
    text-transform: uppercase;
}

.portal-workspace-layout {
    min-height: 290px;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    color: var(--gateway-ink);
}

.portal-workspace-layout nav {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 18px 12px;
    color: #fff;
    background: linear-gradient(180deg, #32202f, #6e3158);
}

.portal-workspace-layout nav strong {
    margin: 0 7px 9px;
    font-size: 12px;
}

.portal-workspace-layout nav span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 800;
}

.portal-workspace-layout nav span.active {
    color: var(--gateway-ink);
    background: var(--gateway-gold);
}

.portal-workspace-main {
    padding: 18px;
}

.portal-workspace-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.portal-workspace-welcome > span {
    display: grid;
    gap: 3px;
}

.portal-workspace-welcome small,
.portal-workspace-stats small {
    color: #8c7583;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-workspace-welcome strong {
    font-size: 17px;
}

.portal-workspace-welcome > i {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--gateway-plum);
    background: #fbe8f1;
}

.portal-workspace-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.portal-workspace-stats article {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid #eedbd3;
    border-radius: 11px;
    background: #fff;
}

.portal-workspace-stats strong {
    color: var(--gateway-coral);
    font-size: 22px;
}

.portal-workspace-stats span {
    color: #7d6574;
    font-size: 9px;
}

.portal-workspace-activity {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #eedbd3;
    border-radius: 11px;
    background: #fff;
}

.portal-workspace-activity > strong {
    font-size: 11px;
}

.portal-workspace-activity p {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: #715d69;
    font-size: 9px;
}

.portal-workspace-activity p i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #166534;
    background: #dcfce7;
}

.portal-workspace-activity p small {
    color: #a28f99;
}

.portal-gateway-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 800;
}

.portal-gateway-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portal-gateway-trust i {
    color: #f7b44e;
}

.portal-gateway-register .portal-gateway-content {
    grid-template-columns: minmax(540px, 1.08fr) minmax(430px, .92fr);
}

.portal-gateway-register .portal-gateway-form-panel {
    padding: 38px 46px;
}

.portal-gateway-register .portal-gateway-heading,
.portal-gateway-register .portal-gateway-form,
.portal-gateway-register .portal-gateway-errors,
.portal-gateway-register .portal-gateway-form-footer {
    width: min(590px, 100%);
}

.portal-gateway-register-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 15px;
    margin-top: 22px;
}

.portal-gateway-register-form .portal-gateway-submit {
    grid-column: 1 / -1;
}

.portal-gateway-field-full,
.portal-register-honeypot {
    grid-column: 1 / -1;
}

.portal-register-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.portal-onboarding-list {
    display: grid;
    gap: 11px;
}

.portal-onboarding-list article {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.portal-onboarding-list b {
    color: #f7b44e;
    font-size: 12px;
}

.portal-onboarding-list article > span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.portal-onboarding-list strong {
    font-size: 13px;
}

.portal-onboarding-list small {
    color: rgba(255, 255, 255, .63);
    font-size: 11px;
    line-height: 1.4;
}

.portal-onboarding-list article > i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--gateway-ink);
    background: #f7b44e;
}

.portal-onboarding-callout {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    padding: 17px;
    border-radius: 15px;
    color: var(--gateway-ink);
    background: #fff4ec;
}

.portal-onboarding-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--gateway-coral);
}

.portal-onboarding-callout strong {
    font-size: 13px;
}

.portal-onboarding-callout p {
    margin: 5px 0 0;
    color: #796475;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .portal-gateway {
        align-items: start;
        padding: 16px;
    }

    .portal-gateway-shell {
        width: min(680px, 100%);
        min-height: auto;
    }

    .portal-gateway-content,
    .portal-gateway-register .portal-gateway-content {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .portal-gateway-form-panel {
        order: 1;
        padding: 46px 34px;
    }

    .portal-gateway-preview {
        order: 2;
        padding: 38px 34px;
    }

    .portal-gateway-register .portal-gateway-form-panel {
        padding: 40px 34px;
    }
}

@media (max-width: 560px) {
    .portal-gateway {
        padding: 9px;
    }

    .portal-gateway-shell {
        border-radius: 18px;
    }

    .portal-gateway-topbar {
        min-height: 68px;
        padding: 11px 15px;
    }

    .portal-gateway-topbar > p {
        max-width: 115px;
        text-align: right;
        font-size: 11px;
        line-height: 1.4;
    }

    .portal-gateway-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .portal-gateway-brand strong {
        font-size: 15px;
    }

    .portal-gateway-brand small {
        font-size: 8px;
    }

    .portal-gateway-form-panel,
    .portal-gateway-register .portal-gateway-form-panel {
        padding: 32px 18px;
    }

    .portal-gateway-heading,
    .portal-gateway-form,
    .portal-gateway-errors,
    .portal-gateway-form-footer,
    .portal-gateway-register .portal-gateway-heading,
    .portal-gateway-register .portal-gateway-form,
    .portal-gateway-register .portal-gateway-errors,
    .portal-gateway-register .portal-gateway-form-footer {
        width: min(330px, 100%);
    }

    .portal-gateway-heading h1 {
        font-size: 28px;
    }

    .portal-gateway-heading p {
        font-size: 13px;
    }

    .portal-gateway-form {
        gap: 14px;
        margin-top: 23px;
    }

    .portal-gateway-register-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .portal-gateway-input,
    .portal-gateway-submit {
        min-height: 44px;
        border-radius: 12px;
    }

    .portal-gateway-input {
        grid-template-columns: 35px minmax(0, 1fr);
    }

    .portal-gateway-input > i {
        width: 31px;
        height: 31px;
    }

    .portal-gateway-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .portal-gateway-preview {
        gap: 20px;
        padding: 28px 18px;
    }

    .portal-gateway-preview-copy h2 {
        font-size: 24px;
    }

    .portal-workspace-window {
        transform: none;
    }

    .portal-workspace-layout {
        grid-template-columns: 1fr;
    }

    .portal-workspace-layout nav {
        display: none;
    }

    .portal-workspace-main {
        padding: 14px;
    }

    .portal-gateway-trust {
        display: grid;
        gap: 8px;
    }

    .portal-onboarding-list article {
        grid-template-columns: 30px minmax(0, 1fr) 28px;
        gap: 10px;
        padding: 13px;
    }
}
.admin-brand-mark img,
.client-brand-mark img,
.portal-gateway-mark img,
.admin-login-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
