/* =========================================================
   REDEEMIT MINIMALIST LANDING PAGE
   Pioneer Review Center Inc.
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

.redeemit-page,
.redeemit-page * {
    box-sizing: border-box;
}


.redeemit-page {

    --redeemit-maroon: #641517;
    --redeemit-maroon-dark: #4b0d0f;
    --redeemit-red: #b32024;
    --redeemit-black: #111111;
    --redeemit-muted: #777777;
    --redeemit-light: #f4f3f2;
    --redeemit-border: #ece9e7;

    position: relative;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    background: #eeeeee;

    color:
        var(--redeemit-black);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    isolation: isolate;

    overflow: hidden;
}

/* =========================================================
   MEDICAL BACKGROUND
   ========================================================= */

.redeemit-page::before {

    content: "";

    position: fixed;

    inset: 0;

    z-index: -2;

    background-image:
        url("../images/redeemit-medical-bg.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    opacity: 0.40;

    pointer-events: none;

}


/* =========================================================
   MAIN AUTHENTICATION CONTAINER
   ========================================================= */

.redeemit-auth-shell {

    position: relative;

    width: min(
        1100px,
        calc(100% - 40px)
    );

    height: 560px;

    margin: auto;

    overflow: hidden;

    background: #ffffff;

    border-radius: 25px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .12),
        0 20px 45px rgba(0, 0, 0, .18),
        0 35px 80px rgba(0, 0, 0, .28);

    isolation: isolate;
}


/* =========================================================
   PANELS
   ========================================================= */

.redeemit-panel {

    position: absolute;

    top: 0;
    bottom: 0;

    width: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* =========================================================
   WELCOME PANEL
   ========================================================= */

.redeemit-welcome-panel {

    left: 0;

    background:
        #ffffff;

    z-index: 1;
}


.redeemit-welcome-content {

    width: min(
        430px,
        calc(100% - 80px)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.redeemit-eyebrow {

    margin-bottom: 9px;

    color:
        var(--redeemit-red);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1.8px;

    line-height: 1.3;
}


/* =========================================================
   REDEEMIT WORDMARK
   ========================================================= */

.redeemit-wordmark {

    margin: 0;

    color:
        #111111;

    font-size: clamp(
        58px,
        6vw,
        82px
    );

    font-weight: 900;

    line-height: .9;

    letter-spacing: -5px;
}


.redeemit-wordmark span {
    color:
        var(--redeemit-red);
}


/* =========================================================
   WELCOME HEADING
   ========================================================= */

.redeemit-welcome-content h2 {

    margin:
        20px 0 13px;

    max-width: 410px;

    color:
        #151515;

    font-size: 25px;

    font-weight: 800;

    line-height: 1.18;

    letter-spacing: -.7px;
}


/* =========================================================
   WELCOME DESCRIPTION
   ========================================================= */

.redeemit-welcome-description {

    max-width: 410px;

    margin: 0;

    color:
        #777777;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   GET STARTED BUTTON
   ========================================================= */

.redeemit-get-started {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 24px;

    padding:
        10px 16px;

    border:
        0;

    border-radius: 999px;

    background:
        #0d3826;

    color:
        #ffffff;

    font-size: 13px;

    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(
            13,
            56,
            38,
            .22
        );

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.redeemit-get-started:hover {

    background:
        #174D36;

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 22px rgba(
            13,
            56,
            38,
            .28
        );
}


.redeemit-get-started:active {

    transform:
        translateY(0);

}


.redeemit-arrow {

    font-size: 14px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.redeemit-get-started:hover
.redeemit-arrow {

    transform:
        translateX(3px);
}


/* =========================================================
   LOGIN PANEL
   ========================================================= */

.redeemit-login-panel {

    right: 0;

    background:
        #ffffff;

    z-index: 1;
}


.redeemit-login-content {

    width: min(
        390px,
        calc(100% - 70px)
    );

    text-align: center;
}


/* =========================================================
   LOGIN BRAND
   ========================================================= */

.redeemit-login-brand {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 28px;
}


.redeemit-login-logo {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 50%;

    background: #ffffff;
}


.redeemit-login-logo img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.redeemit-login-brand-text {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    line-height: 1;
}


.redeemit-login-brand-text strong {
    font-size: 24px;

    font-weight: 900;

    letter-spacing: -0.9px;
}


.redeemit-login-brand-text strong span {

    color:
        var(--redeemit-red);
}


.redeemit-login-brand-text small {
    margin-top: 5px;

    color: #888888;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


/* =========================================================
   LOGIN HEADING
   ========================================================= */

.redeemit-login-content h2 {

    margin: 0 0 13px;

    color:
        #111111;

    font-size: 29px;

    font-weight: 850;

    line-height: 1.08;

    letter-spacing: -.9px;
}


.redeemit-login-description {
    margin: 30px auto 10px;

    color: #888888;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   GOOGLE LOGIN
   ========================================================= */

.redeemit-google-wrap {

    min-height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        5px 0 10px;
}


.redeemit-google-wrap > div {

    max-width: 100%;

}


/* =========================================================
   LOGIN ERROR
   ========================================================= */

.redeemit-login-error {

    min-height: 18px;

    margin:
        4px 0 10px;

    color:
        #b42318;

    font-size: 11px;

    line-height: 1.4;
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

.redeemit-security-note {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    padding:
        11px 12px;

    border:
        1px solid #eeeeee;

    border-radius: 9px;

    background:
        #fafafa;

    text-align: left;
}


.redeemit-security-icon {

    flex-shrink: 0;

    font-size: 25px;

    line-height: 1.4;
}


.redeemit-security-note p {

    margin: 0;

    color:
        #777777;

    font-size: 10px;

    line-height: 1.55;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.redeemit-back-button {

    margin-top: 18px;

    padding: 5px 8px;

    border: 0;

    background:
        transparent;

    color:
        #888888;

    font-size: 13px;

    cursor: pointer;

    transition:
        color .2s ease;
}


.redeemit-back-button:hover {

    color:
        var(--redeemit-red);

}


/* =========================================================
   MAROON SLIDING COVER
   ========================================================= */

.redeemit-cover {

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 50%;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius:
        25px;

    background:
        linear-gradient(
            180deg,
            #8b3032 0%,
            #681719 48%,
            #4e0d0f 100%
        );

    transform:
        translateX(0);

    transition:
        transform .8s cubic-bezier(
            .77,
            0,
            .175,
            1
        );

    will-change:
        transform;
}


/* =========================================================
   COVER CONTENT
   ========================================================= */

.redeemit-cover-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

    padding:
        40px;
}


/* =========================================================
   COVER LOGO
   ========================================================= */

.redeemit-cover-logo {

    width: 305px;
    height: 305px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 50%;

    background: transparent;

    overflow: visible;
}


.redeemit-cover-logo img {

    display: block;

    width: 300px;
    height: 300px;

    max-width: none;
    max-height: none;

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 10px
            rgba(0, 0, 0, 0.45)
        );

}


/* =========================================================
   COVER SLOGAN
   ========================================================= */

.redeemit-cover-slogan {

    display: flex;

    flex-direction: column;

    align-items: center;

    color:
        #ffffff;

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-style:
        italic;
}


.redeemit-cover-slogan span {

    font-size: 23px;

    line-height: 1.15;
}


.redeemit-cover-slogan strong {

    margin-top: 2px;

    font-size: 25px;

    font-weight: 800;

    line-height: 1.15;
}


/* =========================================================
   COVER SHADOW / DEPTH
   ========================================================= */

.redeemit-cover::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.06),
            transparent 25%,
            transparent 75%,
            rgba(0,0,0,.12)
        );
}


/* =========================================================
   LOGIN STATE
   ========================================================= */

.redeemit-auth-shell.is-login
.redeemit-cover {

    transform:
        translateX(-100%);

}


/* =========================================================
   LOGIN STATE — WELCOME BUTTON
   ========================================================= */

.redeemit-auth-shell.is-login
.redeemit-get-started {

    pointer-events:
        none;

}


/* =========================================================
   FOOTER
   ========================================================= */

.redeemit-footer {

    flex-shrink: 0;

    padding:
        14px 20px 18px;

    color:
        #999999;

    font-size: 9px;

    text-align: center;

}


/* =========================================================
   FOCUS STATES
   ========================================================= */

.redeemit-get-started:focus-visible {

    outline:
        2px solid
        #0d3826;

    outline-offset:
        4px;

}

.redeemit-back-button:focus-visible {

    outline:
        2px solid
        var(--redeemit-red);

    outline-offset:
        4px;

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .redeemit-cover {

        transition:
            none;

    }

    .redeemit-get-started,
    .redeemit-arrow {

        transition:
            none;

    }

}


/* =========================================================
   RESPONSIVE — STACKED (VERTICAL) LAYOUT

   Below 900px the two side-by-side panels stack:

       ┌───────────────┐
       │ Welcome       │   (top half)
       ├───────────────┤
       │ Login         │   (bottom half)
       └───────────────┘

   The maroon cover starts over the LOGIN half.
   "Get started" slides it UP over the welcome half,
   which uncovers the login panel.

   Both halves are normal grid rows with equal height,
   so the card grows with its content instead of
   clipping it at a fixed pixel height.
   ========================================================= */

@media (max-width: 900px) {

    .redeemit-page {
        padding: 20px 0 0;
    }


    .redeemit-auth-shell {

        width: min(
            560px,
            calc(100% - 32px)
        );

        height: auto;

        margin: auto;

        display: grid;

        grid-template-columns: 1fr;
        grid-auto-rows: 1fr;

        border-radius: 22px;
    }


    /* Panels become normal grid rows */

    .redeemit-panel {

        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 100%;

        padding: 44px 0;
    }

    .redeemit-welcome-panel { grid-row: 1; }
    .redeemit-login-panel   { grid-row: 2; }


    .redeemit-welcome-content {

        width: calc(100% - 56px);

        text-align: center;
    }

    .redeemit-welcome-content h2,
    .redeemit-welcome-description {

        margin-left: auto;
        margin-right: auto;
    }

    .redeemit-login-content {

        width: calc(100% - 56px);
    }


    /* Cover: lower half at rest, slides up on "Get started" */

    .redeemit-cover {

        top: 50%;
        bottom: auto;
        left: 0;

        width: 100%;
        height: 50%;

        border-radius: 22px;
    }

    .redeemit-cover::after {

        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.06),
                transparent 25%,
                transparent 75%,
                rgba(0,0,0,.12)
            );
    }

    .redeemit-auth-shell.is-login
    .redeemit-cover {

        transform:
            translateY(-100%);
    }

    .redeemit-cover-content {

        padding: 28px;
    }

    .redeemit-cover-logo,
    .redeemit-cover-logo img {

        width:  clamp(110px, 30vw, 170px);
        height: clamp(110px, 30vw, 170px);
    }

    .redeemit-cover-logo {

        margin-bottom: 16px;
    }

    .redeemit-cover-slogan span   { font-size: 21px; }
    .redeemit-cover-slogan strong { font-size: 23px; }


    /* Type, tuned for the narrower card */

    .redeemit-eyebrow {

        font-size: 12px;

        letter-spacing: 1.5px;
    }

    .redeemit-wordmark {

        font-size: 64px;

        letter-spacing: -4px;
    }

    .redeemit-welcome-content h2 {

        margin-top: 16px;

        font-size: 23px;
    }

    .redeemit-welcome-description {

        font-size: 13px;
    }

    .redeemit-login-content h2 {

        font-size: 27px;
    }

    .redeemit-login-description {

        margin-top: 20px;

        font-size: 13px;
    }

    .redeemit-login-brand {

        margin-bottom: 20px;
    }

    .redeemit-login-brand-text small {

        font-size: 8px;
    }

    .redeemit-security-note p {

        font-size: 11px;
    }


    /* Comfortable touch targets */

    .redeemit-get-started {

        margin-top: 20px;

        padding: 13px 24px;

        font-size: 14px;
    }

    .redeemit-back-button {

        margin-top: 12px;

        padding: 11px 14px;
    }

    .redeemit-footer {

        padding-bottom: calc(
            18px +
            env(safe-area-inset-bottom, 0px)
        );
    }

}


/* =========================================================
   RESPONSIVE — PHONES
   ========================================================= */

@media (max-width: 480px) {

    .redeemit-page {
        padding-top: 14px;
    }

    .redeemit-auth-shell {

        width: calc(100% - 24px);

        border-radius: 20px;
    }

    .redeemit-cover {

        border-radius: 20px;
    }

    .redeemit-panel {

        padding: 30px 0;
    }

    .redeemit-welcome-content,
    .redeemit-login-content {

        width: calc(100% - 40px);
    }

    .redeemit-cover-content {

        padding: 20px;
    }

    .redeemit-cover-logo {

        margin-bottom: 12px;
    }

    .redeemit-cover-slogan span   { font-size: 18px; }
    .redeemit-cover-slogan strong { font-size: 20px; }

    .redeemit-eyebrow {

        margin-bottom: 7px;

        font-size: 11px;

        letter-spacing: 1.2px;
    }

    .redeemit-wordmark {

        font-size: 52px;

        letter-spacing: -3.5px;
    }

    .redeemit-welcome-content h2 {

        margin: 14px auto 10px;

        font-size: 20px;
    }

    .redeemit-welcome-description {

        font-size: 12px;

        line-height: 1.6;
    }

    .redeemit-login-brand {

        margin-bottom: 14px;
    }

    .redeemit-login-content h2 {

        font-size: 23px;
    }

    .redeemit-login-description {

        margin: 14px auto 6px;
    }

    .redeemit-security-note {

        padding: 9px 10px;
    }

    .redeemit-security-icon {

        font-size: 20px;
    }

}


/* =========================================================
   RESPONSIVE — SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .redeemit-wordmark {

        font-size: 46px;

        letter-spacing: -3px;
    }

    .redeemit-welcome-content h2 {

        font-size: 18px;
    }

    .redeemit-login-content h2 {

        font-size: 21px;
    }

    .redeemit-cover-logo,
    .redeemit-cover-logo img {

        width: 96px;
        height: 96px;
    }

    .redeemit-cover-slogan span   { font-size: 16px; }
    .redeemit-cover-slogan strong { font-size: 18px; }

}