body.auth-page {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 28px 14px;
    background:
        linear-gradient(165deg, rgba(4, 28, 40, 0.58), rgba(7, 43, 41, 0.45)),
        url("https://images.unsplash.com/photo-1518509562904-e7ef99cdcc86?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
    font-family: "Outfit", "Segoe UI", sans-serif;
}

.auth-shell {
    width: 100%;
    display: grid;
    place-items: center;
    position: relative;
}

.auth-card {
    width: min(460px, calc(100% - 4px));
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.66);
    background: linear-gradient(170deg, rgba(236, 244, 249, 0.62), rgba(226, 236, 246, 0.36));
    box-shadow: 0 28px 55px rgba(5, 21, 38, 0.34);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 26px 28px 24px;
    color: #1f2a33;
}

.auth-logo-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
}

.auth-logo-wrap img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.auth-badge {
    display: flex;
    width: max-content;
    margin: 2px auto 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(32, 66, 91, 0.22);
    background: rgba(255, 255, 255, 0.52);
    color: #23445b;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-title {
    margin: 4px 0 5px;
    text-align: center;
    font-size: clamp(1.7rem, 2.8vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin: 0;
    text-align: center;
    color: rgba(31, 42, 51, 0.82);
}

.auth-no-social {
    margin: 10px 0 16px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(31, 42, 51, 0.72);
}

.auth-form {
    margin-top: 10px;
}

.auth-card .ds-form-group {
    margin-bottom: 13px;
}

.auth-card .ds-form-label {
    color: #1f2a33;
    font-weight: 700;
}

.auth-card .ds-input {
    border-radius: 14px;
    border: 1px solid rgba(35, 64, 88, 0.35);
    background: rgba(255, 255, 255, 0.55);
    color: #12212f;
}

.auth-card .ds-input:focus {
    border-color: #158269;
    box-shadow: 0 0 0 3px rgba(21, 130, 105, 0.16);
}

.auth-password {
    display: block;
    position: relative;
}

.auth-password .ds-input {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #31546d;
    cursor: pointer;
    padding: 0;
    font-size: 0;
    line-height: 1;
    appearance: none;
}

.auth-password-toggle:hover {
    background: rgba(21, 130, 105, 0.1);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid #158269;
    outline-offset: 2px;
}

.auth-password-icon {
    display: block;
    font-size: 19px;
    line-height: 1;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(18, 33, 47, 0.86);
    font-size: 0.9rem;
}

.auth-remember-row {
    margin: 3px 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-inline-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-inline-link:hover {
    color: #fff871;
    text-decoration: underline;
}

.auth-temp-password {
    margin-bottom: 12px;
    border: 1px dashed rgba(20, 66, 91, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    padding: 11px 12px;
    color: #1f2a33;
    font-size: 0.9rem;
}

.auth-temp-password code {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.auth-card .ds-btn {
    border-radius: 13px;
    background: linear-gradient(145deg, #102430, #1a2e3f);
    border: 1px solid rgba(17, 30, 41, 0.7);
    box-shadow: 0 12px 22px rgba(9, 21, 34, 0.24);
}

.auth-card .ds-btn:hover {
    transform: translateY(-1px);
}

.auth-links {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-links-spread {
    justify-content: space-between;
}

.auth-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
}

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

.payment-checkout-card {
    width: min(520px, 100%);
}

.checkout-summary {
    display: grid;
    gap: 8px;
    margin: 18px 0 12px;
    text-align: left;
}

.checkout-summary div,
.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 12px;
    border: 1px solid #d6e2ef;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
}

.checkout-summary span,
.checkout-total span {
    color: #607790;
    font-size: 0.76rem;
}

.checkout-summary strong,
.checkout-total strong {
    color: #173651;
    font-size: 0.82rem;
    text-align: right;
}

.checkout-total {
    align-items: baseline;
    margin-bottom: 14px;
}

.checkout-total strong {
    color: #0c887d;
    font-size: 1.15rem;
}

.checkout-back-link {
    display: block;
    margin-top: 16px;
    text-align: center;
}

.mock-payment-panel {
    margin: 16px 0 14px;
    padding: 14px;
    border: 1px solid #d6e2ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.mock-payment-panel-head,
.mock-payment-methods,
.mock-payment-fields > div {
    display: flex;
    gap: 8px;
}

.mock-payment-panel-head {
    align-items: center;
    justify-content: space-between;
}

.mock-payment-panel-head strong,
.mock-payment-panel-head span {
    display: block;
}

.mock-payment-panel-head strong {
    color: #173651;
    font-size: 0.84rem;
}

.mock-payment-panel-head span {
    margin-top: 2px;
    color: #71859a;
    font-size: 0.7rem;
}

.mock-payment-lock {
    margin: 0 !important;
    padding: 5px 7px;
    border-radius: 6px;
    background: #e2f5ed;
    color: #247044 !important;
    font-weight: 800;
}

.mock-payment-methods {
    margin: 12px 0;
}

.mock-payment-method {
    flex: 1;
    min-height: 34px;
    border: 1px solid #d6e2ef;
    border-radius: 8px;
    background: #fff;
    color: #5c7691;
    font: inherit;
    font-size: 0.72rem;
}

.mock-payment-method.is-active {
    border-color: #73c7bb;
    background: #effaf8;
    color: #0b746d;
    font-weight: 700;
}

.mock-payment-fields,
.mock-payment-fields label {
    display: grid;
    gap: 6px;
}

.mock-payment-fields > div {
    flex: 1;
}

.mock-payment-fields > div label {
    flex: 1;
}

.mock-payment-fields span {
    color: #607790;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

@media (max-width: 640px) {
    .auth-card {
        border-radius: 24px;
        padding: 22px 18px 20px;
    }

    .auth-links,
    .auth-links-spread {
        justify-content: center;
    }
}

/* Customer registration — split-screen desktop, compact hero on mobile. */
body.reg-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f2f6fb 0%, #eef3f9 100%);
    color: var(--ds-ink);
    font-family: "Outfit", "Segoe UI", sans-serif;
}

.reg-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
}

.reg-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 38px;
    color: #f4fbfa;
    isolation: isolate;
}

.reg-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        url("https://images.unsplash.com/photo-1518509562904-e7ef99cdcc86?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
    transform: scale(1.02);
}

.reg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 26, 38, 0.55) 0%, rgba(5, 26, 38, 0.1) 38%, rgba(4, 42, 40, 0.72) 100%);
}

.reg-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    height: 100%;
}

.reg-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.reg-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px;
}

.reg-hero-copy {
    max-width: 30ch;
}

.reg-hero-tag {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.reg-hero-copy h2 {
    margin: 14px 0 8px;
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.reg-hero-copy p {
    margin: 0;
    color: rgba(244, 251, 250, 0.88);
    font-size: 0.95rem;
    line-height: 1.5;
}

.reg-hero-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(244, 251, 250, 0.92);
}

.reg-hero-list li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.reg-hero-list li::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4fd1c0;
}

.reg-form-side {
    display: grid;
    place-items: center;
    padding: 40px 32px;
    background: #ffffff;
}

.reg-form-inner {
    width: min(560px, 100%);
}

.reg-form-head h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    letter-spacing: -0.02em;
}

.reg-form-head p {
    margin: 6px 0 22px;
    color: var(--ds-ink-soft);
    font-size: 0.94rem;
}

.reg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.reg-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.reg-label {
    color: #31445d;
    font-size: 0.83rem;
    font-weight: 700;
}

.reg-field .ds-input {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--ds-line-strong);
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.reg-field .ds-input:focus {
    outline: none;
    border-color: var(--ds-brand);
    box-shadow: 0 0 0 3px rgba(13, 139, 126, 0.16);
}

/* Sandbox checkout */
.payment-checkout-page { background: #eef3f0; color: #17322e; }
.checkout-shell { width: min(1040px, 100%); display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; }
.checkout-brand { padding: 28px; color: #f3fbf6; border-radius: 18px; background: linear-gradient(145deg, #123e39, #1b635a); box-shadow: 0 24px 50px rgba(22, 64, 54, .2); }
.checkout-brand-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 14px; background: #fff; }
.checkout-brand-mark img { width: 42px; height: 42px; object-fit: contain; }
.sandbox-label, .eyebrow { display: block; color: #a7f0ca; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.checkout-brand h1 { max-width: 11ch; margin: 12px 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; }
.checkout-brand p { max-width: 35ch; color: rgba(243, 251, 246, .8); line-height: 1.55; }
.checkout-trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.checkout-trust span { padding: 6px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; font-size: .68rem; font-weight: 800; }
.checkout-card { padding: 28px; border: 1px solid #d5e4dc; border-radius: 18px; background: #fff; box-shadow: 0 20px 46px rgba(33, 65, 55, .12); }
.checkout-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.checkout-card-heading h2 { margin: 5px 0 0; font-size: 1.55rem; }
.checkout-card-heading > strong { color: #0f8066; font-size: 1.4rem; white-space: nowrap; }
.checkout-summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 22px; padding: 16px; border: 1px solid #e0ebe5; border-radius: 10px; background: #f7faf8; }
.checkout-summary span { color: #6b7f77; font-size: .76rem; }
.checkout-summary strong { font-size: .82rem; text-align: right; }
.mock-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 18px; }
.mock-tab { min-height: 42px; border: 1px solid #cbdcd4; border-radius: 8px; background: #fff; color: #587269; font: inherit; font-weight: 700; cursor: pointer; }
.mock-tab.is-active { border-color: #178b70; background: #e9f8f0; color: #09654f; }
.mock-method-panel { display: grid; gap: 12px; }
.mock-method-panel label, .scenario-label { display: grid; gap: 6px; color: #35534a; font-size: .8rem; font-weight: 700; }
.mock-method-panel small, .mock-hint { margin: -4px 0 0; color: #6f847b; font-size: .74rem; font-weight: 400; }
.mock-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-payment-panel .ds-input, .checkout-card .ds-input { min-height: 44px; border-color: #cbdcd4; border-radius: 8px; background: #fff; }
.scenario-label { margin: 18px 0; }
.checkout-card .ds-btn { border-radius: 8px; background: #123e39; }
.mock-processing { margin: 12px 0 0; color: #16836b; text-align: center; font-size: .82rem; }
.payment-result { margin-bottom: 18px; padding: 16px; border-radius: 10px; background: #eef8f1; color: #19583d; }
.payment-result-failed, .payment-result-cancelled, .payment-result-error { background: #fff3ed; color: #8c4027; }
.payment-result p { margin: 8px 0 0; line-height: 1.55; font-size: .82rem; }
.checkout-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.checkout-actions form { margin: 0; }
.checkout-actions .ds-btn { display: inline-block; padding: 10px 14px; text-decoration: none; font-size: .8rem; }
.checkout-back-link { display: block; margin-top: 18px; text-align: center; }
.is-hidden { display: none; }
@media (max-width: 760px) {
    .checkout-shell { grid-template-columns: 1fr; gap: 14px; }
    .checkout-brand { padding: 22px; }
    .checkout-brand-mark { margin-bottom: 18px; }
    .checkout-brand h1 { max-width: none; font-size: 2rem; }
    .checkout-trust { margin-top: 20px; }
    .checkout-card { padding: 20px 16px; }
}

.reg-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355657a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m7 10 5 5 5-5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 38px;
}

.reg-password {
    position: relative;
    display: block;
}

.reg-password .ds-input {
    padding-right: 46px;
}

.reg-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ds-ink-soft);
    cursor: pointer;
}

.reg-password-toggle:hover {
    background: var(--ds-surface-2);
    color: var(--ds-ink);
}

.reg-password-toggle svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reg-password-toggle svg[hidden] {
    display: none;
}

.reg-help {
    color: var(--ds-ink-faint);
    font-size: 0.79rem;
}

.reg-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 20px;
    border-radius: 12px;
    font-size: 0.98rem;
    justify-content: center;
}

.reg-submit:focus-visible {
    outline: 3px solid rgba(13, 139, 126, 0.35);
    outline-offset: 2px;
}

.reg-submit:disabled {
    cursor: progress;
    opacity: 0.85;
    transform: none;
}

.reg-submit-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    animation: reg-spin 0.7s linear infinite;
}

.reg-submit.is-loading .reg-submit-spinner {
    display: inline-block;
}

.reg-submit.is-loading .reg-submit-label::after {
    content: "…";
}

@keyframes reg-spin {
    to {
        transform: rotate(360deg);
    }
}

.reg-signin {
    margin: 18px 0 0;
    text-align: center;
    color: var(--ds-ink-soft);
    font-size: 0.92rem;
}

.reg-signin a {
    color: var(--ds-brand-strong);
    font-weight: 700;
    text-decoration: none;
}

.reg-signin a:hover {
    text-decoration: underline;
}

@media (max-width: 1080px) {
    .reg-hero {
        padding: 32px 26px;
    }

    .reg-form-side {
        padding: 32px 24px;
    }
}

@media (max-width: 860px) {
    .reg-shell {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .reg-hero {
        min-height: 23vh;
        padding: 18px 18px 20px;
        justify-content: flex-end;
    }

    .reg-hero-content {
        gap: 12px;
        height: auto;
    }

    .reg-brand {
        font-size: 0.95rem;
    }

    .reg-brand img {
        width: 32px;
        height: 32px;
    }

    .reg-hero-copy {
        max-width: none;
    }

    .reg-hero-tag {
        display: none;
    }

    .reg-hero-copy h2 {
        margin: 0;
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .reg-hero-copy p,
    .reg-hero-list {
        display: none;
    }

    .reg-form-side {
        padding: 20px 18px calc(28px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
        margin-top: -18px;
        position: relative;
        z-index: 1;
    }

    .reg-form-inner {
        width: 100%;
    }

    .reg-form-head h1 {
        font-size: 1.35rem;
    }

    .reg-form-head p {
        margin-bottom: 16px;
        font-size: 0.88rem;
    }

    .reg-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
