@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600;700;800&display=swap");

@font-face {
    font-family: "Geist Pixel";
    font-display: swap;
    font-style: normal;
    font-weight: 400 900;
    src: url("../fonts/geist-pixel/GeistPixel-Regular-VariableFont_ELSH.ttf") format("truetype");
}

:root {
    --tresneria-access-ink: #17223b;
    --tresneria-access-muted: #62708b;
    --tresneria-access-line: #dce3f1;
    --tresneria-access-blue: #2257d5;
    --tresneria-access-blue-dark: #183ea4;
    --tresneria-access-soft: #f4f7ff;
    --tresneria-access-gold: #f6b51d;
    --tresneria-access-green: #16865b;
    --tresneria-access-danger: #b42318;
    --tresneria-access-font-body: "Geist Mono", ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
    --tresneria-access-font-display: "Geist Pixel", "Geist Mono", ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
}

body.tresneria-access-page .wp-block-post-title {
    display: none;
}

body.tresneria-access-page .page_content_wrap,
body.tresneria-access-page .content {
    padding-top: 0 !important;
}

.woocommerce-account .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) {
    max-width: none;
}

.tresneria-access,
.tresneria-access * {
    box-sizing: border-box;
}

.tresneria-access {
    width: min(100%, 560px);
    margin: 0 auto clamp(20px, 6vw, 64px);
    padding: 0 16px;
    color: var(--tresneria-access-ink);
    font-family: var(--tresneria-access-font-body);
}

.tresneria-access-card {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 6vw, 46px);
    border: 1px solid rgba(155, 171, 203, 0.42);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(80, 125, 241, 0.12), transparent 34%),
        #fff;
    box-shadow: 0 24px 60px rgba(31, 51, 96, 0.12);
}

.tresneria-access-card--compact {
    padding-top: 30px;
}

.tresneria-access-card--success {
    text-align: center;
}

.tresneria-access-card h1,
.tresneria-access-card h2 {
    margin: 0;
    color: var(--tresneria-access-ink);
    font-family: var(--tresneria-access-font-display);
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: 0;
}

.tresneria-access-card h1 {
    max-width: 430px;
    font-size: clamp(34px, 8vw, 52px);
}

.tresneria-access-card h2 {
    font-size: clamp(30px, 7vw, 42px);
}

.tresneria-access__eyebrow {
    margin: 0 0 12px;
    color: var(--tresneria-access-blue);
    font-family: var(--tresneria-access-font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tresneria-access__lead {
    margin: 14px 0 28px;
    color: var(--tresneria-access-muted);
    font-size: 16px;
    line-height: 1.55;
}

.tresneria-access__google {
    display: flex;
    justify-content: center;
    min-height: 44px;
    width: 100%;
}

.tresneria-access__google > div,
.tresneria-access__google iframe {
    max-width: 100% !important;
}

.tresneria-access__root[aria-busy="true"] .tresneria-access__google {
    opacity: 0.62;
    pointer-events: none;
}

.tresneria-access__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: #8793aa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tresneria-access__divider::before,
.tresneria-access__divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--tresneria-access-line);
}

.tresneria-access__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    border-radius: 15px;
    background: #eef2fa;
}

.tresneria-access__tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    color: var(--tresneria-access-muted);
    background: transparent;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.tresneria-access__tabs button[aria-selected="true"] {
    color: var(--tresneria-access-ink);
    background: #fff;
    box-shadow: 0 4px 14px rgba(27, 43, 79, 0.1);
}

.tresneria-access__tabs button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tresneria-access__form label {
    display: block;
    margin: 0 0 8px;
    color: var(--tresneria-access-ink);
    font-size: 14px;
    font-weight: 760;
}

.tresneria-access__input-shell {
    display: flex;
    align-items: center;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #cfd8e8;
    border-radius: 14px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tresneria-access__input-shell:focus-within {
    border-color: var(--tresneria-access-blue);
    box-shadow: 0 0 0 4px rgba(34, 87, 213, 0.12);
}

.tresneria-access__prefix {
    display: grid;
    place-items: center;
    min-width: 52px;
    align-self: stretch;
    border-right: 1px solid var(--tresneria-access-line);
    color: #53617a;
    background: #f6f8fc;
    font-size: 14px;
    font-weight: 800;
}

.tresneria-access__input-shell input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    color: var(--tresneria-access-ink);
    background: transparent !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 16px;
}

.tresneria-access__input-shell input[readonly] {
    color: #44506a;
    background: #f6f8fc !important;
}

.tresneria-access__input-shell--otp input {
    text-align: center;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.35em;
}

.tresneria-access__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 52px;
    margin: 14px 0 0 !important;
    padding: 12px 18px !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    font: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.tresneria-access__button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.tresneria-access__button:active:not(:disabled) {
    transform: translateY(0);
}

.tresneria-access__button--primary {
    color: #fff !important;
    background: linear-gradient(135deg, #2c65e5, var(--tresneria-access-blue-dark)) !important;
    box-shadow: 0 12px 24px rgba(34, 87, 213, 0.22);
}

.tresneria-access__button--secondary {
    color: var(--tresneria-access-blue) !important;
    border-color: #b9c9ee !important;
    background: #f2f6ff !important;
}

.tresneria-access__button:disabled,
.tresneria-access__root[aria-busy="true"] .tresneria-access__button {
    opacity: 0.62;
    cursor: wait;
}

.tresneria-access__microcopy,
.tresneria-access__notice,
.tresneria-access__loading {
    margin: 14px 0 0;
    color: var(--tresneria-access-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.tresneria-access__notice {
    padding: 11px 13px;
    border-radius: 12px;
    background: #fff7e7;
    color: #74500b;
}

.tresneria-access__error {
    min-height: 20px;
    margin: 8px 0 0;
    color: var(--tresneria-access-danger);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.tresneria-access__back,
.tresneria-access__text-button {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    color: var(--tresneria-access-blue);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
}

.tresneria-access__back {
    margin: -12px 0 18px;
}

.tresneria-access__text-button:disabled {
    color: #8a94a8;
    cursor: default;
}

.tresneria-access__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -12px 0 24px;
    padding: 12px 14px;
    border-radius: 13px;
    color: #30405e;
    background: var(--tresneria-access-soft);
    font-size: 14px;
}

.tresneria-access__identity > span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    border-radius: 9px;
    color: #fff;
    background: var(--tresneria-access-green);
    font-size: 10px;
    font-weight: 900;
}

.tresneria-access__identity strong {
    overflow-wrap: anywhere;
}

.tresneria-access__otp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    color: var(--tresneria-access-muted);
    font-size: 12px;
}

.tresneria-access__success-mark {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    border-radius: 50%;
    color: #fff;
    background: var(--tresneria-access-green);
    box-shadow: 0 16px 30px rgba(22, 134, 91, 0.22);
    font-size: 34px;
    font-weight: 900;
}

.tresneria-access__reward {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 0;
    padding: 16px;
    border: 1px solid #f2d27d;
    border-radius: 16px;
    text-align: left;
    background: #fff9e7;
}

.tresneria-access__reward > strong {
    color: #9b6500;
    font-family: var(--tresneria-access-font-display);
    font-size: 25px;
}

.tresneria-access__reward span,
.tresneria-access__reward small {
    display: block;
}

.tresneria-access__reward span {
    color: #5a4212;
    font-size: 14px;
    font-weight: 800;
}

.tresneria-access__reward small {
    margin-top: 3px;
    color: #7d6a40;
    font-weight: 500;
}

@media (max-width: 520px) {
    .tresneria-access {
        margin: 0 auto 30px;
        padding: 0 10px;
    }

    .tresneria-access-card {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .tresneria-access-card h1 {
        font-size: clamp(32px, 11vw, 43px);
    }

    .tresneria-access__lead {
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tresneria-access *,
    .tresneria-access *::before,
    .tresneria-access *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
