/* ============================================================
   BOUNCE BACK REWARDS
   LOGIN PAGE
============================================================ */

:root {

    --maroon: #7b0026;
    --maroon-dark: #570019;
    --maroon-deep: #390011;

    --charcoal: #202428;
    --charcoal-dark: #15181b;

    --white: #ffffff;

    --text: #24272a;
    --muted: #686c70;

    --border: #d7d9dc;

    --background: #171b1f;

}


/* ============================================================
   RESET
============================================================ */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    min-height: 100%;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background:
        var(--background);

    font-size: 16px;

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;

}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


button,
input {
    font: inherit;
}


/* ============================================================
   PAGE LAYOUT
============================================================ */

.login-page {

    width: 100%;

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(480px, 37%)
        1fr;

}


/* ============================================================
   LEFT AREA
============================================================ */

.login-brand-area {

    position: relative;

    z-index: 5;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    padding:
        90px 0
        90px 40px;

    background:

        radial-gradient(
            circle at 0% 100%,
            rgba(123, 0, 38, .22),
            transparent 35%
        ),

        #171b1f;

}


/* ============================================================
   BACK HOME
============================================================ */

.back-home {

    position: absolute;

    left: 40px;

    top: 32px;

    color:
        rgba(255,255,255,.67);

    font-size: 14px;

    transition:
        color .2s ease;

}


.back-home:hover {
    color: white;
}


/* ============================================================
   LOGIN CARD
============================================================ */

.login-card {

    position: relative;

    z-index: 10;

    width: 440px;

    margin-right: -95px;

    padding:
        42px 45px 38px;

    background: white;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.28);

}


/* ============================================================
   LOGIN BRANDING
============================================================ */

.login-branding {

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-bottom: 30px;

    text-align: center;

}


/* Bounce Back Rewards logo */

.login-logo {

    display: flex;

    align-items: center;

    justify-content: center;

}


.login-logo img {

    width: 250px;

    max-width: 100%;

    max-height: 125px;

    object-fit: contain;

}


/* ============================================================
   PROGRAM BRANDING
============================================================ */

.program-by {

    width: 100%;

    margin-top: 17px;

}


.program-by-label {

    display: block;

    margin-bottom: 11px;

    color: #74787c;

    font-size: 13px;

    line-height: 1.3;

}


.program-brand-logos {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    min-height: 44px;

}


/* Both company logos */

.program-logo {

    display: block;

    width: auto;

    height: auto;

    object-fit: contain;

}


/* Bounce Around */

.bounce-logo {

    max-width: 115px;

    max-height: 43px;

}


/* AA Tents And Inflatables */

.aa-program-logo {

    max-width: 105px;

    max-height: 43px;

}


/* Divider between brands */

.program-brand-divider {

    display: block;

    width: 1px;

    height: 34px;

    background: #d7d9dc;

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 430px) {

    .login-branding {

        margin-bottom: 26px;

    }


    .login-logo img {

        width: 215px;

    }


    .program-by {

        margin-top: 14px;

    }


    .program-brand-logos {

        gap: 12px;

    }


    .bounce-logo {

        max-width: 100px;

        max-height: 38px;

    }


    .aa-program-logo {

        max-width: 90px;

        max-height: 38px;

    }


    .program-brand-divider {

        height: 30px;

    }

}

/* ============================================================
   INTRO
============================================================ */

.login-intro {

    margin-bottom: 29px;

    text-align: center;

}


.login-intro h1 {

    margin:
        0 0 8px;

    color:
        var(--charcoal);

    font-size: 29px;

    font-weight: 600;

    line-height: 1.2;

}


.login-intro p {

    max-width: 310px;

    margin:
        0 auto;

    color:
        var(--muted);

    font-size: 15px;

    line-height: 1.55;

}


/* ============================================================
   FORM
============================================================ */

.login-form {

    width: 100%;

}


.form-group {

    margin-bottom: 17px;

}


.form-group label {

    display: block;

    margin-bottom: 8px;

    color:
        var(--charcoal);

    font-size: 14px;

    font-weight: 600;

}


.form-group input {

    width: 100%;

    height: 55px;

    padding:
        0 16px;

    border:
        1px solid
        #9ca1a6;

    border-radius: 4px;

    outline: none;

    color:
        var(--charcoal);

    background: white;

    font-size: 16px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


.form-group input::placeholder {

    color:
        #8b8f93;

}


.form-group input:hover {

    border-color:
        #6f7479;

}


.form-group input:focus {

    border-color:
        var(--maroon);

    box-shadow:
        0 0 0 3px
        rgba(123,0,38,.11);

}


/* ============================================================
   PRIMARY BUTTON
============================================================ */

.primary-button {

    width: 100%;

    height: 55px;

    margin-top: 3px;

    border: 0;

    border-radius: 30px;

    color: white;

    background:
        var(--charcoal-dark);

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;

}


.primary-button:hover {

    background:
        var(--maroon);

}


.primary-button:active {

    transform:
        scale(.99);

}


/* ============================================================
   DIVIDER
============================================================ */

.login-divider {

    position: relative;

    margin:
        28px 0 19px;

    text-align: center;

}


.login-divider::before {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    top: 50%;

    height: 1px;

    background:
        #e1e2e3;

}


.login-divider span {

    position: relative;

    z-index: 2;

    padding:
        0 13px;

    color:
        #74787c;

    background: white;

    font-size: 13px;

}


/* ============================================================
   JOIN BUTTON
============================================================ */

.join-button {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 52px;

    border:
        1px solid
        var(--charcoal);

    border-radius: 30px;

    color:
        var(--charcoal);

    background: white;

    font-size: 16px;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;

}


.join-button:hover {

    color: white;

    background:
        var(--maroon);

    border-color:
        var(--maroon);

}


/* ============================================================
   HELP
============================================================ */

.login-help {

    margin-top: 22px;

    text-align: center;

}


.login-help a {

    color:
        var(--charcoal);

    font-size: 14px;

    text-decoration: underline;

    text-underline-offset: 3px;

}


.login-help a:hover {

    color:
        var(--maroon);

}


/* ============================================================
   TERMS
============================================================ */

.login-terms {

    margin-top: 25px;

    padding-top: 21px;

    border-top:
        1px solid
        #e4e5e6;

}


.login-terms p {

    margin: 0;

    color:
        #777b7f;

    text-align: center;

    font-size: 12px;

    line-height: 1.6;

}


.login-terms a {

    color:
        var(--charcoal);

    text-decoration: underline;

    text-underline-offset: 2px;

}


/* ============================================================
   RIGHT IMAGE
============================================================ */

.login-image-area {

    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        #272a2d;

}


.login-image-area > img {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

}


/* ============================================================
   IMAGE OVERLAY
============================================================ */

.image-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(21,24,27,.22),
            transparent 30%
        ),

        linear-gradient(
            0deg,
            rgba(21,24,27,.72),
            transparent 55%
        );

}


/* ============================================================
   IMAGE COPY
============================================================ */

.image-content {

    position: absolute;

    z-index: 3;

    left: 145px;

    bottom: 145px;

    max-width: 590px;

    color: white;

}


.image-kicker {

    margin-bottom: 13px;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: .7px;

}


.image-content h2 {

    margin: 0;

    font-size:
        clamp(
            45px,
            4.5vw,
            70px
        );

    font-weight: 700;

    line-height: 1.02;

    letter-spacing: -2.5px;

    text-shadow:
        0 3px 25px
        rgba(0,0,0,.25);

}


.image-content h2 span {

    color:
        #f1dfe5;

}


.image-content p {

    max-width: 530px;

    margin:
        18px 0 0;

    color:
        rgba(255,255,255,.85);

    font-size: 18px;

    line-height: 1.6;

    text-shadow:
        0 2px 15px
        rgba(0,0,0,.25);

}


/* ============================================================
   MOBILE BRAND MESSAGE
============================================================ */

.mobile-brand-message {

    display: none;

}


/* ============================================================
   LARGE SCREENS
============================================================ */

@media (min-width: 1700px) {

    .login-card {

        width: 460px;

    }


    .login-brand-area {

        padding-left: 60px;

    }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1050px) {

    .login-page {

        grid-template-columns:
            minmax(420px, 48%)
            1fr;

    }


    .login-card {

        width:
            calc(100% - 50px);

        margin-right: -60px;

        padding:
            38px;

    }


    .image-content {

        left: 100px;

        bottom: 130px;

    }


    .participating-brands {

        display: none;

    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 760px) {

    .login-page {

        display: block;

        min-height: 100vh;

    }


    .login-image-area {

        display: none;

    }


    .login-brand-area {

        min-height: 100vh;

        display: flex;

        flex-direction: column;

        justify-content: center;

        padding:
            90px 20px
            45px;

        background:

            radial-gradient(
                circle at 50% 100%,
                rgba(123,0,38,.28),
                transparent 40%
            ),

            var(--charcoal-dark);

    }


    .back-home {

        left: 22px;

        top: 24px;

    }


    .login-card {

        width: 100%;

        max-width: 470px;

        margin: 0 auto;

        padding:
            35px 28px;

        border-radius: 4px;

    }


    .login-logo img {

        width: 215px;

    }


    .mobile-brand-message {

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 9px;

        margin-top: 27px;

        color:
            rgba(255,255,255,.72);

        font-size: 15px;

    }


    .mobile-brand-message span {

        color:
            #c55d7d;

    }


    .mobile-brand-message p {

        margin: 0;

    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 430px) {

    .login-brand-area {

        padding-left: 15px;

        padding-right: 15px;

    }


    .login-card {

        padding:
            30px 22px;

    }


    .login-logo {

        margin-bottom: 22px;

    }


    .login-logo img {

        width: 190px;

    }


    .login-intro h1 {

        font-size: 26px;

    }


    .form-group input,
    .primary-button {

        height: 53px;

    }

}

/* ============================================================
   DESKTOP VIEWPORT FIT
   Keeps the entire login screen inside the browser height
============================================================ */

@media (min-width: 761px) {

    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }


    .login-page {
        width: 100%;
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }


    /* LEFT SIDE */

    .login-brand-area {
        height: 100vh;
        min-height: 0;

        padding:
            70px 0
            30px 40px;

        overflow: visible;
    }


    /* BACK LINK */

    .back-home {
        top: 27px;
        left: 34px;
    }


    /* LOGIN CARD */

    .login-card {
        width: 400px;

        margin-right: -82px;

        padding:
            28px 36px
            24px;
    }


    /* BOUNCE BACK LOGO */

    .login-branding {
        margin-bottom: 20px;
    }


    .login-logo img {
        width: 205px;
        max-height: 88px;
    }


    /* "A rewards program from" */

    .program-by {
        margin-top: 10px;
    }


    .program-by-label {
        margin-bottom: 7px;

        font-size: 12px;
    }


    .program-brand-logos {
        min-height: 34px;
        gap: 12px;
    }


    .bounce-logo {
        max-width: 92px;
        max-height: 32px;
    }


    .aa-program-logo {
        max-width: 80px;
        max-height: 32px;
    }


    .program-brand-divider {
        height: 27px;
    }


    /* WELCOME */

    .login-intro {
        margin-bottom: 20px;
    }


    .login-intro h1 {
        margin-bottom: 5px;

        font-size: 26px;
    }


    .login-intro p {
        font-size: 14px;
        line-height: 1.45;
    }


    /* FORM */

    .form-group {
        margin-bottom: 13px;
    }


    .form-group label {
        margin-bottom: 6px;

        font-size: 13px;
    }


    .form-group input {
        height: 49px;

        font-size: 15px;
    }


    /* CONTINUE */

    .primary-button {
        height: 49px;

        margin-top: 1px;

        font-size: 15px;
    }


    /* NEW TO BOUNCE BACK */

    .login-divider {
        margin:
            20px 0
            15px;
    }


    .login-divider span {
        font-size: 12px;
    }


    /* JOIN */

    .join-button {
        height: 47px;

        font-size: 15px;
    }


    /* HELP */

    .login-help {
        margin-top: 16px;
    }


    .login-help a {
        font-size: 13px;
    }


    /* TERMS */

    .login-terms {
        margin-top: 18px;
        padding-top: 15px;
    }


    .login-terms p {
        font-size: 11px;
        line-height: 1.45;
    }


    /* RIGHT IMAGE */

    .login-image-area {
        height: 100vh;
        min-height: 0;
    }


    /* HERO COPY */

    .image-content {
        left: 125px;
        bottom: 70px;

        max-width: 570px;
    }


    .image-kicker {
        margin-bottom: 8px;

        font-size: 13px;
    }


    .image-content h2 {
        font-size:
            clamp(
                44px,
                4vw,
                62px
            );

        line-height: 1.02;
    }


    .image-content p {
        max-width: 500px;

        margin-top: 13px;

        font-size: 16px;
        line-height: 1.5;
    }

}