@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    overflow-x: hidden;

    font-family: "DM Sans", sans-serif;

    color: #172033;

    background: #e9d3a8;
}


/* =========================================================
   BACKGROUND
========================================================= */

.page-background {
    position: fixed;
    inset: 0;

    z-index: -10;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255,255,255,.72),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(255,255,255,.48),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #d9bf8e 0%,
            #f4e6c9 30%,
            #ead6ad 65%,
            #d4b77e 100%
        );
}

.page-background::after {
    content: "";

    position: absolute;
    inset: 0;

    opacity: .25;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(80,55,25,.025) 0px,
            rgba(80,55,25,.025) 1px,
            transparent 1px,
            transparent 5px
        );
}


/* =========================================================
   NAVBAR
========================================================= */

.signup-navbar {
    position: relative;

    width: min(1160px, calc(100% - 40px));

    height: 66px;

    margin: 20px auto 0;

    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255,255,255,.94);

    border: 1px solid rgba(255,255,255,.95);

    border-radius: 18px;

    box-shadow:
        0 12px 30px rgba(65,45,20,.13);

    z-index: 500;
}

.brand {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #172033;

    text-decoration: none;

    font-size: 21px;
    font-weight: 700;
}

.brand-plane {
    font-size: 27px;

    transform: rotate(-8deg);
}

.back-home {
    color: #475569;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    padding: 9px 12px;

    border-radius: 9px;

    transition: .2s ease;
}

.back-home:hover {
    color: #2563eb;

    background: #eff6ff;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.signup-page {

    width: min(1280px, calc(100% - 40px));

    height: calc(100vh - 100px);

    min-height: 680px;

    margin: 0 auto;

    padding: 20px 0 20px;

    display: grid;

    grid-template-columns:
        minmax(650px, 1fr)
        400px;

    gap: 55px;

    align-items: center;
}


/* =========================================================
   LEFT COLLAGE AREA
========================================================= */

.travel-collage {

    position: relative;

    width: 100%;

    height: 610px;
}


/* =========================================================
   CENTRAL PAPER
========================================================= */

.travel-message {

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-.4deg);

    width: 545px;
    height: 500px;

    padding:
        70px
        58px
        40px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,.48),
            transparent 32%
        ),
        #f5e4c2;

    box-shadow:
        0 18px 35px rgba(70,45,20,.12);

    z-index: 10;
}


/* paper texture */

.travel-message::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .32;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 5px,
            rgba(80,55,25,.035) 6px
        );
}


/* =========================================================
   SMALL LABEL
========================================================= */

.small-label {

    position: relative;

    display: inline-block;

    padding: 8px 17px;

    margin-bottom: 25px;

    background: #e8c875;

    color: #293548;

    font-family: "Caveat", cursive;

    font-size: 17px;
    font-weight: 600;

    transform: rotate(-2deg);

    box-shadow:
        0 4px 8px rgba(70,45,20,.10);

    z-index: 20;
}

.small-label::before {

    content: "";

    position: absolute;

    width: 58px;
    height: 13px;

    top: -7px;
    left: 50%;

    transform:
        translateX(-50%)
        rotate(2deg);

    background: rgba(255,239,184,.78);
}


/* =========================================================
   MAIN HEADING
========================================================= */

.travel-message h1 {

    position: relative;

    font-family: "Caveat", cursive;

    font-size: 72px;

    line-height: .82;

    letter-spacing: -1px;

    font-weight: 700;

    color: #172033;

    z-index: 20;
}

.travel-message h1 span {

    display: inline-block;

    color: #1769e8;

    position: relative;
}

.travel-message h1 span::after {

    content: "";

    position: absolute;

    left: 2px;
    right: -8px;

    bottom: -5px;

    height: 4px;

    border-radius: 50%;

    background: #1769e8;

    transform: rotate(-1deg);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.main-text {

    position: relative;

    margin-top: 27px;

    font-family: "Caveat", cursive;

    font-size: 19px;

    line-height: 1.45;

    color: #667384;

    z-index: 20;
}


/* =========================================================
   FEATURES
========================================================= */

.travel-features {

    position: relative;

    display: flex;

    gap: 25px;

    margin-top: 27px;

    z-index: 30;
}

.feature {

    width: 95px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.feature-icon {

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 5px;

    border-radius: 50%;

    font-size: 23px;

    background: #e0edff;

    border: 2px solid rgba(255,255,255,.85);

    box-shadow:
        0 4px 9px rgba(60,45,25,.10);
}

.feature:nth-child(2) .feature-icon {
    background: #ffe6a7;
}

.feature:nth-child(3) .feature-icon {
    background: #dcefd0;
}

.feature strong {

    font-family: "Caveat", cursive;

    font-size: 19px;

    color: #172033;
}

.feature small {

    margin-top: 1px;

    font-family: "Caveat", cursive;

    font-size: 11px;

    color: #7c8794;
}


/* =========================================================
   ROUTE DOODLE
========================================================= */

.route-doodle {
    position: absolute;

    left: 105px;
    bottom: -50px;

    width: 220px;
    height: 65px;

    z-index: 35;

    pointer-events: none;
}
.route-line {
    position: absolute;

    left: 0;
    bottom: -100px;

    width: 175px;

    border-top: 2px dashed #6f8eaa;

    transform: rotate(5deg);
}
.route-plane {
    position: absolute;

    left: 188px;
    right: auto;

    bottom: -5px;

    font-size: 22px;

    transform: rotate(-20deg);
}

/* =========================================================
   TRAVEL STICKER
========================================================= */

.sticker {

    position: absolute;

    right: 18px;
    bottom: 18px;

    width: 80px;
    height: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-family: "Caveat", cursive;

    font-size: 17px;
    font-weight: 700;

    line-height: .8;

    color: white;

    background:
        radial-gradient(
            circle at 30% 25%,
            #ffd45d,
            #f59e0b
        );

    border: 4px solid #fff4da;

    border-radius: 50%;

    transform: rotate(7deg);

    box-shadow:
        5px 6px 0 rgba(65,45,20,.12);

    z-index: 45;
}

.sticker span {
    font-size: 17px;
}


/* =========================================================
   POLAROID BASE
========================================================= */

.polaroid {

    position: absolute;

    width: 145px;

    padding:
        8px
        8px
        15px;

    background: #fffdf9;

    border: 1px solid rgba(205,190,165,.55);

    box-shadow:
        0 16px 28px rgba(45,35,20,.20);

    z-index: 80;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.polaroid::before {

    content: "";

    position: absolute;

    width: 65px;
    height: 20px;

    top: -10px;
    left: 50%;

    transform:
        translateX(-50%)
        rotate(-2deg);

    background:
        rgba(239,211,142,.82);
}

.polaroid:hover {

    z-index: 200;

    box-shadow:
        0 24px 40px rgba(45,35,20,.27);
}


/* =========================================================
   PHOTO
========================================================= */

.photo {

    position: relative;

    width: 100%;
    height: 108px;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
filter:
    brightness(.95)
    saturate(1)
    contrast(1.03);
    overflow: hidden;
}

.photo::after {

    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.10);

    pointer-events: none;
}

.polaroid span {

    display: block;

    margin-top: 7px;

    text-align: center;

    font-family: "Caveat", cursive;

    font-size: 17px;
    font-weight: 600;

    color: #172033;
}


/* =========================================================
   YOUR FOUR PHOTOS
========================================================= */

.photo-1 {
    background-image: url("images/travel1.jpg");
}

.photo-2 {
    background-image: url("images/travel2.jpg");
}

.photo-3 {
    background-image: url("images/travel3.jpg");
}

.photo-4 {
    background-image: url("images/travel4.jpg");
}


/* =========================================================
   POLAROID POSITIONS
   IMPORTANT:
   Everything stays INSIDE collage.
========================================================= */

.polaroid-1 {

    top: 15px;
    left: 5px;

    transform: rotate(-8deg);
}

.polaroid-2 {

    top: 18px;
    right: 8px;

    transform: rotate(8deg);
}

.polaroid-3 {

    bottom: 8px;
    left: 15px;

    transform: rotate(6deg);
}

.polaroid-4 {

    bottom: 5px;
    right: 12px;

    transform: rotate(-7deg);
}


/* =========================================================
   SIGNUP CARD
========================================================= */

.signup-card {

    position: relative;

    width: 400px;

    padding:
        30px
        34px
        20px;

    background:
        linear-gradient(
            135deg,
            #fffefa,
            #faf8f2
        );

    border:
        1px solid rgba(200,190,170,.55);

    border-radius: 4px;

    box-shadow:
        8px 10px 0 rgba(255,255,255,.35),
        0 24px 45px rgba(55,40,20,.18);

    transform: rotate(.6deg);

    z-index: 100;
}


/* =========================================================
   CARD TAPE
========================================================= */

.paper-tape {

    position: absolute;

    width: 120px;
    height: 28px;

    top: -14px;
    left: 50%;

    transform:
        translateX(-50%)
        rotate(-2deg);

    background:
        rgba(239,211,135,.84);
}


/* =========================================================
   CARD HEADER
========================================================= */

.card-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}

.card-emoji {

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f1dc;

    border-radius: 14px;

    font-size: 23px;
}

.card-header h2 {

    font-family: "Caveat", cursive;

    font-size: 34px;

    line-height: 1;

    color: #172033;
}

.card-header p {

    margin-top: 4px;

    font-size: 11px;

    color: #7b8491;
}


/* =========================================================
   FORM
========================================================= */

.input-group {

    margin-bottom: 11px;
}

.input-group label {

    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    font-weight: 700;

    color: #344054;
}

.input-group input {

    width: 100%;
    height: 43px;

    padding: 0 13px;

    background: #fafaf8;

    border: 1px solid #d9dee5;

    border-radius: 8px;

    outline: none;

    color: #172033;

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    transition: .2s ease;
}

.input-group input::placeholder {
    color: #9ca5b1;
}

.input-group input:focus {

    background: white;

    border-color: #4285ea;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.08);
}


/* =========================================================
   PASSWORD
========================================================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 42px;
}

.password-toggle {

    position: absolute;

    right: 9px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 14px;

    opacity: .65;
}

.password-toggle:hover {
    opacity: 1;
}


/* =========================================================
   TERMS
========================================================= */

.terms-row {

    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin:
        4px 0
        13px;

    font-size: 9px;

    line-height: 1.5;

    color: #707987;

    cursor: pointer;
}

.terms-row input {

    margin-top: 2px;

    accent-color: #2563eb;

    cursor: pointer;
}

.terms-row a {

    color: #2563eb;

    font-weight: 600;

    text-decoration: none;
}


/* =========================================================
   MESSAGE
========================================================= */

.signup-message {

    min-height: 0;

    margin-bottom: 5px;

    text-align: center;

    font-size: 11px;

    color: #dc2626;
}


/* =========================================================
   CREATE BUTTON
========================================================= */

.signup-button {

    width: 100%;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #2874ed,
            #155bd4
        );

    color: white;

    font-family: "DM Sans", sans-serif;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(37,99,235,.22);

    transition: .2s ease;
}

.signup-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 23px rgba(37,99,235,.30);
}


/* =========================================================
   LOGIN
========================================================= */

.login-link {

    margin-top: 11px;

    padding-top: 10px;

    border-top:
        1px dashed #dedbd3;

    text-align: center;

    font-size: 10px;

    color: #818995;
}

.login-link a {

    color: #1769e8;

    font-weight: 700;

    text-decoration: none;
}

.card-bottom {

    margin-top: 8px;

    text-align: center;

    font-family: "Caveat", cursive;

    font-size: 15px;

    color: #89909a;
}


/* =========================================================
   OTP MODAL
========================================================= */

.otp-modal {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.otp-modal.active {
    display: flex;
}

.otp-overlay {

    position: absolute;

    inset: 0;

    background: rgba(20,25,35,.68);

    backdrop-filter: blur(8px);
}

.otp-card {

    position: relative;

    width: min(420px, calc(100% - 30px));

    padding:
        36px
        30px
        28px;

    background: #fffdf8;

    border: 1px solid #ddd6c7;

    border-radius: 5px;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(0,0,0,.30);

    z-index: 2;
}

.close-otp {

    position: absolute;

    top: 12px;
    right: 14px;

    width: 31px;
    height: 31px;

    border: none;

    border-radius: 50%;

    background: #f0eee8;

    color: #64748b;

    font-size: 21px;

    cursor: pointer;
}

.otp-icon {

    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    background: #e8f1dc;

    border-radius: 50%;

    font-size: 27px;
}

.otp-card h2 {

    font-family: "Caveat", cursive;

    font-size: 33px;

    color: #172033;
}

.otp-card p {

    margin-top: 7px;

    font-size: 12px;

    color: #687386;

    line-height: 1.6;
}

#otpEmail {

    display: block;

    margin-top: 4px;

    color: #1769e8;

    font-size: 12px;

    word-break: break-all;
}

.otp-inputs {

    display: flex;

    justify-content: center;

    gap: 8px;

    margin:
        23px 0
        13px;
}

.otp-inputs input {

    width: 44px;
    height: 51px;

    text-align: center;

    border: 1px solid #d5dbe3;

    border-radius: 8px;

    background: #fafaf7;

    color: #172033;

    font-size: 20px;
    font-weight: 700;

    outline: none;
}

.otp-inputs input:focus {

    border-color: #2563eb;

    background: white;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.08);
}

.otp-message {

    min-height: 18px;

    font-size: 11px;

    color: #dc2626;
}

.verify-otp-button {

    width: 100%;
    height: 47px;

    margin-top: 7px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #2874ed,
            #155bd4
        );

    color: white;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.otp-note {

    margin-top: 13px !important;

    font-size: 10px !important;

    color: #9299a3 !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .signup-page {

        width: calc(100% - 30px);

        grid-template-columns:
            minmax(520px, 1fr)
            370px;

        gap: 25px;
    }

    .travel-message {

        width: 500px;

        padding:
            65px
            45px;
    }

    .travel-message h1 {
        font-size: 65px;
    }

    .polaroid {
        width: 125px;
    }

    .photo {
        height: 92px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 820px) {

    body {
        overflow-x: hidden;
    }

    .signup-navbar {

        width: calc(100% - 20px);

        height: 58px;

        margin-top: 10px;

        padding: 0 15px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-plane {
        font-size: 22px;
    }

    .back-home {
        font-size: 11px;
    }

    .signup-page {

        width: calc(100% - 14px);

        height: auto;

        min-height: 0;

        padding:
            30px
            0
            40px;

        display: flex;

        flex-direction: column;

        gap: 30px;
    }

    .travel-collage {

        width: 100%;

        height: 580px;
    }

    .travel-message {

        width: calc(100% - 35px);

        height: 470px;

        padding:
            65px
            25px
            35px;
    }

    .travel-message h1 {

        font-size: 52px;

        line-height: .85;
    }

    .main-text {
        font-size: 17px;
    }

    .travel-features {

        justify-content: center;

        gap: 8px;
    }

    .feature {
        width: 80px;
    }

    .feature-icon {

        width: 40px;
        height: 40px;

        font-size: 19px;
    }

    .feature strong {
        font-size: 17px;
    }

    .feature small {
        font-size: 9px;
    }

    .route-doodle {
        display: none;
    }

    .polaroid {

        width: 105px;

        padding:
            6px
            6px
            11px;
    }

    .photo {
        height: 78px;
    }

    .polaroid span {
        font-size: 14px;
    }

    .polaroid-1 {
        top: 35px;
        left: 0;
    }

    .polaroid-2 {
        top: 38px;
        right: 0;
    }

    .polaroid-3 {
        bottom: 15px;
        left: 0;
    }

    .polaroid-4 {
        bottom: 12px;
        right: 0;
    }

    .sticker {

        width: 70px;
        height: 70px;

        right: 15px;
        bottom: 15px;

        font-size: 15px;
    }

    .signup-card {

        width: min(
            420px,
            calc(100% - 18px)
        );

        margin: auto;

        transform: rotate(.5deg);

        padding:
            30px
            23px
            21px;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 500px) {

    .travel-collage {
        height: 550px;
    }

    .travel-message {

        width: calc(100% - 18px);

        height: 455px;

        padding:
            65px
            18px
            30px;
    }

    .travel-message h1 {
        font-size: 47px;
    }

    .main-text {
        font-size: 15px;
    }

    .travel-features {
        gap: 2px;
    }

    .feature {
        width: 72px;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
    }

    .feature strong {
        font-size: 15px;
    }

    .feature small {
        font-size: 8px;
    }

    .polaroid {
        width: 88px;
    }

    .photo {
        height: 65px;
    }

    .polaroid span {
        font-size: 12px;
    }

    .sticker {
        width: 65px;
        height: 65px;

        font-size: 14px;
    }

    .card-header h2 {
        font-size: 30px;
    }

    .otp-inputs {
        gap: 5px;
    }

    .otp-inputs input {
        width: 39px;
        height: 47px;
    }

}
/* =========================================================
   FINAL VIEWPORT ALIGNMENT
========================================================= */

@media (min-width: 821px) {

    body {
        min-height: 100vh;
        overflow-x: hidden;
    }

    .signup-navbar {
        margin-top: 18px;
    }

    .signup-page {
        height: auto;
        min-height: calc(100vh - 104px);

        padding-top: 15px;
        padding-bottom: 25px;

        align-items: center;
    }

    .travel-collage {
        height: 590px;
    }

    .travel-message {
        height: 490px;
    }

    .signup-card {
        transform:
            translateY(-5px)
            rotate(.6deg);
    }

    .sticker {
        right: 25px;
        bottom: 28px;
    }

}
/* =========================================================
   FINAL POLISH
========================================================= */

@media (min-width: 821px) {

    /* Navbar slightly slimmer */
    .signup-navbar {
        height: 62px;
        margin-top: 12px;
    }

    /* Give content a little more breathing room */
    .signup-page {
        min-height: calc(100vh - 88px);
        padding-top: 8px;
    }

    /* Central paper slightly more compact */
    .travel-message {
        width: 535px;
        height: 485px;

        padding:
            64px
            58px
            38px;
    }

    /* Heading */
    .travel-message h1 {
        font-size: 70px;
    }

    /* Description */
    .main-text {
        margin-top: 24px;
    }

    /* Features */
    .travel-features {
        margin-top: 25px;
        gap: 23px;
    }

    /* Sticker moves away from New Memories */
    .sticker {
        right: 45px;
        bottom: 42px;

        width: 76px;
        height: 76px;
    }

    /* New Memories slightly lower/right */
    .polaroid-4 {
        right: 4px;
        bottom: -2px;
    }

    /* Chasing Views slightly lower */
    .polaroid-3 {
        left: 8px;
        bottom: -2px;
    }

    /* Signup card slightly higher */
    .signup-card {
        transform:
            translateY(-8px)
            rotate(.6deg);
    }

}
/* =========================================
   CURVED TRAVEL ROUTE
========================================= */

.route-doodle {
    position: absolute;

    left: 105px;
    bottom: 3px;

    width: 220px;
    height: 65px;

    z-index: 35;

    pointer-events: none;
}

.travel-route {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;
}

.route-path {
    fill: none;

    stroke: #6f8eaa;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-dasharray: 5 6;
}

.route-plane {
    position: absolute;

    right: 0;
    bottom: 0;

    font-size: 23px;

    transform: rotate(-25deg);
}
/* Hide travel route */
.route-doodle {
    display: none !important;
}