:root {
    --account-ink: #111827;
    --account-muted: #64748b;
    --account-line: #e2e8f0;
    --account-soft: #f8fafc;
    --account-accent: #717fe0;
    --account-accent-dark: #5866c7;
    --account-success: #15803d;
    --account-error: #b91c1c;
}

* {
    box-sizing: border-box;
}

body.account-access-page {
    min-height: 100vh;
    margin: 0;
    color: var(--account-ink);
    background: var(--account-soft);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.swal2-popup.store-login-choice {
    width: 440px;
    max-width: calc(100% - 32px);
    padding: 26px 24px 24px;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .2);
}

.store-login-choice .swal2-icon {
    transform: scale(.78);
    margin: 4px auto 12px;
}

.store-login-choice .swal2-title {
    margin: 0;
    padding: 0 28px;
    color: #222;
    font-size: 24px;
    font-weight: 600;
}

.store-login-choice .swal2-html-container {
    margin: 12px 0 0;
    color: #777;
    font-size: 16px;
    line-height: 1.55;
    text-align: center;
}

.store-login-choice .swal2-actions {
    width: 100%;
    margin: 22px 0 0;
    gap: 10px;
    flex-wrap: nowrap;
}

.store-login-choice .store-login-choice-confirm,
.store-login-choice .store-login-choice-cancel {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 22px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
}

.store-login-choice .store-login-choice-confirm {
    order: 2;
    background: #717fe0;
    color: #fff;
}

.store-login-choice .store-login-choice-cancel {
    order: 1;
    border-color: #e5e7eb;
    background: #f4f4f6;
    color: #4b5563;
}

.store-login-choice .store-login-choice-confirm:hover,
.store-login-choice .store-login-choice-confirm:focus {
    background: #5f6fd6;
}

.store-login-choice .store-login-choice-cancel:hover,
.store-login-choice .store-login-choice-cancel:focus {
    background: #e9eaee;
}

@media (max-width: 520px) {
    .store-login-choice .swal2-actions {
        flex-direction: column;
    }

    .store-login-choice .store-login-choice-confirm,
    .store-login-choice .store-login-choice-cancel {
        width: 100%;
    }
}

.account-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(520px, 1.1fr);
}

.account-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(34px, 6vw, 78px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 80% 15%, rgba(113, 127, 224, .58), transparent 33%),
        linear-gradient(145deg, #101827 0%, #1e293b 52%, #111827 100%);
}

.account-brand-panel::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -170px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .02);
}

.account-logo,
.account-brand-copy,
.account-store-link {
    position: relative;
    z-index: 1;
}

.account-logo img {
    width: auto;
    max-width: 160px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.account-brand-copy {
    max-width: 610px;
    padding: 70px 0;
}

.account-eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--account-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.account-brand-copy .account-eyebrow {
    color: #c7d2fe;
}

.account-brand-copy h1 {
    max-width: 580px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 62px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.account-brand-copy > p {
    max-width: 540px;
    margin: 24px 0 30px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.7;
}

.account-brand-copy ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #e2e8f0;
}

.account-brand-copy li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-brand-copy li i {
    color: #a5b4fc;
    font-size: 20px;
}

.account-store-link,
.account-store-link:hover {
    width: fit-content;
    color: #e2e8f0;
    font-weight: 650;
    text-decoration: none;
}

.account-store-link i {
    margin-right: 8px;
}

.account-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(28px, 5vw, 72px);
    background: #fff;
}

.account-card {
    width: min(100%, 620px);
    min-width: 0;
    max-width: 100%;
}

.account-pane,
.account-card form,
.account-card .input-group {
    min-width: 0;
    max-width: 100%;
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 46px;
    padding: 6px;
    border: 1px solid var(--account-line);
    border-radius: 14px;
    background: var(--account-soft);
}

.account-tab {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    color: var(--account-muted);
    background: transparent;
    font-weight: 750;
    cursor: pointer;
    transition: .2s ease;
}

.account-tab.is-active {
    color: var(--account-ink);
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
}

.account-pane:not(.is-active) {
    display: none;
}

.account-heading {
    margin-bottom: 30px;
}

.account-heading h2,
.verification-card h1 {
    margin: 0;
    color: var(--account-ink);
    font-size: clamp(29px, 4vw, 40px);
    font-weight: 780;
    letter-spacing: -.025em;
}

.account-heading > p,
.verification-card > p:not(.account-eyebrow) {
    margin: 10px 0 0;
    color: var(--account-muted);
    line-height: 1.65;
}

.account-card label:not(.account-check) {
    display: inline-block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.account-card .form-control {
    height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: var(--account-ink);
    background: #fff;
    box-shadow: none;
}

.account-card .form-control:focus {
    border-color: var(--account-accent);
    box-shadow: 0 0 0 3px rgba(113, 127, 224, .14);
}

.account-card .input-group .form-control {
    width: 1%;
    min-width: 0;
    border-radius: 10px 0 0 10px;
}

.account-password-toggle {
    min-width: 50px;
    border: 1px solid #cbd5e1;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: var(--account-muted);
    background: #fff;
    cursor: pointer;
}

.account-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.account-label-row a {
    color: var(--account-accent-dark);
    font-size: 13px;
    font-weight: 700;
}

.account-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 24px;
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.account-check input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--account-accent);
}

.account-check a {
    color: var(--account-accent-dark);
    font-weight: 700;
}

.account-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--account-ink);
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.account-button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.account-button-link:hover {
    color: #fff;
}

.account-secondary-link {
    margin: 22px 0 0;
    text-align: center;
    color: #64748b;
}

.account-secondary-link a {
    color: #5856d6;
    font-weight: 700;
}

.account-primary-button:hover {
    color: #fff;
    background: #273449;
    text-decoration: none;
    transform: translateY(-1px);
}

.account-primary-button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.account-profile-options {
    display: grid;
    gap: 10px;
}

.verification-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(113, 127, 224, .15), transparent 35%),
        var(--account-soft);
}

.verification-card {
    width: min(100%, 560px);
    padding: clamp(34px, 6vw, 62px);
    border: 1px solid var(--account-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
    text-align: center;
}

.verification-icon {
    display: inline-grid;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 50%;
    font-size: 34px;
}

.verification-icon.is-success {
    color: var(--account-success);
    background: #dcfce7;
}

.verification-icon.is-error {
    color: var(--account-error);
    background: #fee2e2;
}

.verification-card .account-primary-button {
    margin-top: 30px;
}

.account-back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--account-muted);
    font-size: 14px;
    font-weight: 650;
}

@media (max-width: 980px) {
    .account-shell {
        grid-template-columns: 1fr;
    }

    .account-brand-panel {
        min-height: auto;
        padding: 30px;
    }

    .account-brand-copy {
        padding: 55px 0 35px;
    }

    .account-brand-copy h1 {
        font-size: clamp(32px, 8vw, 50px);
    }

    .account-form-panel {
        min-height: auto;
        padding: 48px 24px 70px;
    }
}

@media (max-width: 620px) {
    .account-brand-panel {
        display: none;
    }

    .account-form-panel {
        width: 100vw;
        max-width: 100vw;
        min-height: 100vh;
        align-items: flex-start;
        min-width: 0;
        padding: 24px 18px 50px;
    }

    .account-card {
        width: calc(100vw - 36px);
        max-width: calc(100vw - 36px);
    }

    .account-tabs {
        margin-bottom: 34px;
    }

    .account-tab {
        min-width: 0;
        padding: 0 8px;
        font-size: 13px;
    }

    .account-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
