* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    background: #09151b;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================
   PAGE TITLE
========================= */

.page-title {
    text-align: center;
    margin: 45px 0 35px;
    color: #f5f5f5;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
}


.page-title span {
    color: #a8ff3e;
}


/* =========================
   SCENE
========================= */

.scene {
    position: relative;

    width: 88%;
    max-width: 1000px;

    height: 520px;

    margin: 0 auto;

    overflow: hidden;

    border: 2px solid rgba(255,255,255,.8);

    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            #f28c72 0%,
            #ffd8b0 42%,
            #ffd46c 70%,
            #f99a32 100%
        );

    box-shadow:
        0 0 20px rgba(255,255,255,.12);
}


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

section.bg {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            #e87561 0%,
            #f5b18d 28%,
            #ffe2b0 55%,
            #ffc75c 75%,
            #f48c2e 100%
        );
}


/* Sun glow */

section.bg::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: rgba(255,255,255,.8);

    left: 50%;
    top: 18%;

    transform: translateX(-50%);

    filter: blur(3px);
}


/* =========================
   DISTANT HILLS
========================= */

section.bg::after {
    content: "";

    position: absolute;

    left: -5%;
    bottom: 22%;

    width: 110%;
    height: 100px;

    background:
        linear-gradient(
            135deg,
            transparent 0 18%,
            #f6b83d 18% 38%,
            transparent 38% 55%,
            #f3a73b 55% 78%,
            transparent 78%
        );

    opacity: .9;
}


/* =========================
   TREES
========================= */

section.trees {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 10;

    pointer-events: none;
}


.tree {
    position: absolute;

    bottom: 0;

    width: 150px;
    height: 100%;
}


/* tree trunk */

.tree .trunk {
    position: absolute;

    bottom: -10px;

    left: 50%;

    width: 34px;
    height: 330px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            90deg,
            #7c251e,
            #9d3428,
            #702019
        );

    border-radius: 5px 5px 0 0;
}


/* branches */

.tree .branches {
    position: absolute;

    width: 150px;
    height: 180px;

    left: 0;
    top: 70px;
}


.tree .branches::before,
.tree .branches::after {
    content: "";

    position: absolute;

    width: 25px;
    height: 150px;

    background: #7c251e;

    border-radius: 15px;

    transform-origin: bottom;
}


.tree .branches::before {
    left: 42px;
    transform: rotate(-38deg);
}


.tree .branches::after {
    right: 42px;
    transform: rotate(38deg);
}


/* tree leaves */

.tree .leaves {
    position: absolute;

    top: 0;
    left: -55px;

    width: 260px;
    height: 145px;

    background: #ef6238;

    border-radius:
        45% 55% 45% 55%;

    box-shadow:
        45px 30px 0 #e95532,
        105px 5px 0 #f16c3b,
        160px 35px 0 #db4c2e;
}


/* left tree */

.tree-left {
    left: 3%;
}


/* right tree */

.tree-right {
    right: 3%;
}


/* =========================
   GROUND
========================= */

.scene::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 22%;

    background:
        linear-gradient(
            to bottom,
            #f7c246,
            #f28b2c
        );

    z-index: 2;
}
/* =========================
   FALLING LEAVES
========================= */

.falling-leaves {
    position: absolute;

    inset: 0;

    z-index: 20;

    pointer-events: none;
}


.falling-leaves span {
    position: absolute;

    font-size: 25px;

    animation:
        fall linear infinite;
}


.falling-leaves span:nth-child(1) {
    left: 10%;
    animation-duration: 6s;
}


.falling-leaves span:nth-child(2) {
    left: 22%;
    animation-duration: 8s;
    animation-delay: -2s;
}


.falling-leaves span:nth-child(3) {
    left: 38%;
    animation-duration: 7s;
    animation-delay: -4s;
}


.falling-leaves span:nth-child(4) {
    left: 52%;
    animation-duration: 9s;
    animation-delay: -1s;
}


.falling-leaves span:nth-child(5) {
    left: 65%;
    animation-duration: 6s;
    animation-delay: -3s;
}


.falling-leaves span:nth-child(6) {
    left: 76%;
    animation-duration: 8s;
    animation-delay: -5s;
}


.falling-leaves span:nth-child(7) {
    left: 88%;
    animation-duration: 7s;
    animation-delay: -2s;
}


.falling-leaves span:nth-child(8) {
    left: 45%;
    animation-duration: 10s;
    animation-delay: -7s;
}


@keyframes fall {

    0% {
        top: -10%;
        transform:
            translateX(0)
            rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform:
            translateX(50px)
            rotate(180deg);
    }

    100% {
        top: 110%;
        transform:
            translateX(-50px)
            rotate(360deg);
        opacity: 0;
    }

}


/* =========================
   LOGIN CARD
========================= */

.login {
    position: absolute;

    z-index: 50;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 330px;

    padding: 30px;

    border-radius: 10px;

    background:
        rgba(255,255,255,.25);

    border:
        1px solid rgba(255,255,255,.45);

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

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


/* =========================
   TITLE
========================= */

.login h2 {
    text-align: center;

    margin-bottom: 22px;

    color: #71362e;

    font-size: 25px;
}


/* =========================
   INPUT BOX
========================= */

.login-inputBox {
    position: relative;

    width: 100%;

    margin-bottom: 14px;
}


.login-inputBox input {
    position: relative;

    width: 100%;

    padding: 15px 20px;

    outline: none;

    font-size: 1em;

    border: none;

    background:
        rgba(255,255,255,.9);

    color: #333;
}


.login-inputBox input::placeholder {
    color: #777;
}


.login-inputBox input:focus {
    box-shadow:
        0 0 0 2px
        rgba(196,65,45,.3);
}


/* =========================
   LOGIN BUTTON
========================= */

.login-inputBox button {
    position: relative;

    width: 100%;

    padding: 14px;

    border: none;

    outline: none;

    cursor: pointer;

    background: #b93627;

    color: white;

    font-size: 14px;

    transition:
        .25s ease;
}


.login-inputBox button:hover {
    background: #92291e;
}


.login-inputBox button:active {
    transform: scale(.98);
}


/* =========================
   LINKS
========================= */

.links {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-top: 15px;
}


.links a {
    color: #754238;

    text-decoration: none;

    font-size: 12px;
}


.links a:hover {
    text-decoration: underline;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {

    .page-title {
        margin-top: 25px;
        margin-bottom: 20px;

        font-size: 2rem;
    }


    .scene {
        width: 94%;
        height: 500px;
    }


    .login {
        width: 285px;

        padding: 25px;
    }


    .tree-left {
        left: -35px;
    }


    .tree-right {
        right: -35px;
    }

}


@media (max-width: 380px) {

    .page-title {
        font-size: 1.7rem;
    }


    .login {
        width: 260px;
    }

}