
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: "DM Sans", sans-serif;
    color: #102443;
    overflow-x: hidden;
    background: #071d2c;
}

/* BACKGROUND */
.travel-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("images/view_from_inside_an_airplane_cabin_looking_out_an.png")
        center center / cover no-repeat;
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(4, 18, 35, .22),
        rgba(4, 18, 35, .04) 58%,
        rgba(4, 18, 35, .12)
    );
}

/* NAVBAR */
.login-navbar {
    width: min(1450px, calc(100% - 80px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 20px;
    font-weight: 800;
    text-shadow: 0 2px 8px #0005;
}

.logo-plane {
    color: #ffbb36;
    font-size: 27px;
}

.back-home {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 8px #0008;
}

.back-home:hover {
    color: #ffbd42;
}

/* MAIN GRID */
.login-experience {
    width: min(1450px, calc(100% - 80px));
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: 22px 0 35px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 540px;
    align-items: center;
    gap: 48px;
}

/* LEFT STORY */
.travel-story {
    position: relative;
    min-width: 0;
    min-height: 680px;
    display: flex;
    align-items: center;
    color: white;
}

.story-copy {
    width: 100%;
    max-width: 760px;
    margin: 0;
    padding: 0;
    color: white;
}

.story-line {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 22px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px #0008;
}

.story-line span {
    display: inline-block;
    width: 58px;
    height: 2px;
    background: #ffbb36;
    flex-shrink: 0;
}

.story-copy h1 {
    margin: 0 0 22px;
    color: white;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(50px, 5.1vw, 82px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -2px;
    text-shadow: 0 3px 18px #0003;
}

.story-copy h1 span {
    display: inline-block;
    color: #ffb82e;
    font-style: italic;
}

/* DESCRIPTION */
.story-copy > p {
    width: 100%;
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.97);
    font-family: "DM Sans", sans-serif;
    font-size: 21px;
    line-height: 1.45;
    text-shadow: 0 2px 10px #0009;
}

/* FEATURES */
.travel-features {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 340px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.feature-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffbd35;
    border-radius: 50%;
    color: #ffbd35;
    background: rgba(5, 25, 42, .28);
    font-size: 25px;
}

.feature div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feature strong {
    color: white;
    font-size: 17px;
    font-weight: 700;
    text-shadow: 0 2px 8px #0007;
}

.feature small {
    color: rgba(255,255,255,.96);
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0 2px 8px #0009;
}

/* FLIGHT ROUTE DECORATION */
.travel-route {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 420px;
    height: 60px;
    display: flex;
    align-items: center;
}

.route-plane {
    color: white;
    font-size: 28px;
    transform: rotate(-25deg);
}

.route-dots {
    width: 220px;
    margin-left: 10px;
    display: flex;
    justify-content: space-between;
    border-top: 2px dashed rgba(255,255,255,.8);
    transform: rotate(-7deg);
}

.route-dots i {
    width: 5px;
    height: 5px;
    margin-top: -3px;
    border-radius: 50%;
    background: white;
}

.route-globe {
    margin-left: 12px;
    color: white;
    font-size: 34px;
}

/* LOGIN CARD */
.boarding-pass {
    position: relative;
    align-self: center;
    width: 100%;
    max-width: 540px;
    min-width: 0;
    padding: 39px 42px 30px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 25px;
    background: rgba(255,254,250,.98);
    color: #102443;
    box-shadow: 0 22px 70px rgba(0,0,0,.23);
    overflow: hidden;
    clip-path: none;
}

.boarding-pass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fff, #e7d2ac, #fff);
}

/* CARD HEADER */
.pass-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 29px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e5df;
}

.pass-top > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pass-type {
    color: #9a9da1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.pass-brand {
    color: #102443;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.pass-plane {
    color: #858b91;
    font-size: 17px;
}

/* CARD HEADING */
.pass-heading {
    margin-bottom: 27px;
}

.pass-heading h2 {
    margin-bottom: 9px;
    color: #0b203e;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
}

.pass-heading p {
    color: #777e89;
    font-size: 16px;
    line-height: 1.55;
}

/* FORM */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.login-field {
    width: 100%;
    min-width: 0;
}

.login-field > label {
    display: block;
    margin-bottom: 9px;
    color: #102443;
    font-size: 14px;
    font-weight: 650;
}

.input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 17px;
    z-index: 1;
    color: #203653;
    font-size: 17px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 56px;
    padding: 0 45px 0 49px;
    border: 1px solid #d9dde4;
    border-radius: 12px;
    outline: none;
    background: white;
    color: #172b45;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.input-wrap input::placeholder {
    color: #969ba4;
}

.input-wrap input:focus {
    border-color: #0866f5;
    box-shadow: 0 0 0 4px rgba(8,102,245,.1);
}

/* PASSWORD EYE */
.password-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #7b8490;
    cursor: pointer;
    padding: 4px;
}

/* REMEMBER ME */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -1px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #777e89;
    font-size: 13px;
    cursor: pointer;
}

.remember input {
    width: 17px;
    height: 17px;
    accent-color: #0866f5;
}

.forgot-password {
    color: #0866ed;
    font-size: 13px;
    font-weight: 600;
}

/* LOGIN BUTTON */
.login-button {
    width: 100%;
    min-height: 59px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #0866f5;
    border-radius: 12px;
    background: linear-gradient(110deg, #0867f8, #075bf0);
    color: white;
    font-size: 17px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(8,102,245,.23);
    transition: transform .2s, box-shadow .2s;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(8,102,245,.3);
}

.login-button strong {
    font-weight: 500;
}

/* OR DIVIDER */
.or-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 23px 0 19px;
    color: #858b94;
    font-size: 13px;
}

.or-divider span {
    flex: 1;
    height: 1px;
    background: #d7d9dd;
}

/* GOOGLE LOGIN */
.social-login {
    width: 100%;
    display: flex;
    justify-content: center;
}

.social-button {
    width: 100%;
    min-height: 62px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1.5px solid #0866f5;
    border-radius: 12px;
    background: #fff;
    color: #30343b;
    font-size: 16px;
    font-weight: 550;
    cursor: pointer;
}

.social-button:hover {
    background: #f8fbff;
}

.google-icon {
    color: #4285f4;
    font-size: 23px;
    font-weight: 800;
}

/* GOOGLE JS RENDERED BUTTON */
#googleSignInContainer {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#googleSignInContainer iframe {
    max-width: 100%;
}

/* CREATE ACCOUNT */
.create-account {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 22px;
    color: #777e89;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

.create-account a {
    color: #0866ed;
    font-weight: 700;
}

/* BARCODE */
.pass-bottom {
    margin-top: 22px;
}

.barcode {
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3px;
    margin-bottom: 8px;
}

.barcode i {
    width: 2px;
    background: #253d51;
    opacity: .55;
}

.barcode i:nth-child(3n) {
    width: 1px;
}

.pass-details {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    color: #334455;
    font-size: 12px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1250px) {
    .login-navbar,
    .login-experience {
        width: calc(100% - 48px);
    }

    .login-experience {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
        gap: 32px;
    }

    .story-copy h1 {
        font-size: clamp(45px, 5vw, 65px);
    }

    .story-copy > p {
        font-size: 17px;
    }

    .boarding-pass {
        padding: 32px 30px 26px;
    }

    .pass-heading h2 {
        font-size: 35px;
    }

    .travel-story {
        min-height: 610px;
    }
}

@media (max-width: 850px) {
    .travel-background {
        background-position: center;
    }

    .background-overlay {
        background: rgba(4,18,35,.45);
    }

    .login-navbar {
        width: calc(100% - 32px);
        height: 65px;
    }

    .login-experience {
        width: min(540px, calc(100% - 32px));
        min-height: auto;
        padding: 25px 0 35px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .travel-story {
        min-height: auto;
        padding: 12px 0;
    }

    .story-copy {
        max-width: 100%;
    }

    .story-copy h1 {
        font-size: clamp(38px, 8vw, 57px);
        letter-spacing: -1px;
    }

    .story-copy > p {
        font-size: 15px;
    }

    .travel-features {
        gap: 12px;
        margin-top: 20px;
    }

    .feature-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        font-size: 20px;
    }

    .feature strong {
        font-size: 15px;
    }

    .feature small {
        font-size: 12px;
    }

    .travel-route {
        display: none;
    }

    .boarding-pass {
        max-width: 100%;
        padding: 28px 23px 24px;
    }
}

@media (max-width: 400px) {
    .login-navbar,
    .login-experience {
        width: calc(100% - 24px);
    }

    .login-logo {
        font-size: 16px;
    }

    .back-home {
        font-size: 12px;
    }

    .boarding-pass {
        padding: 24px 17px 21px;
    }

    .pass-heading h2 {
        font-size: 29px;
    }

    .pass-heading p {
        font-size: 14px;
    }

    .input-wrap input {
        height: 50px;
    }

    .login-button {
        min-height: 51px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* REMOVE LOGIN CARD BARCODE AND FOOTER */
.boarding-pass .pass-footer,
.boarding-pass .barcode {
    display: none !important;
}
