/* =========================================================
   JOYPLAY LOGIN PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    font-family: 'Nunito', sans-serif;

    background: #fff8ec;

    color: #315c49;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    width: 100%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 45px 25px;

    position: relative;

    overflow: hidden;

    background: #fff8ec;
}


/* =========================================================
   BACKGROUND CIRCLES
========================================================= */

.bg-circle {
    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    z-index: 0;
}


.bg-circle-one {
    width: 230px;

    height: 230px;

    background: #d9f3df;

    left: -95px;

    top: -90px;
}


.bg-circle-two {
    width: 190px;

    height: 190px;

    background: #f7d5e0;

    right: -75px;

    bottom: -65px;
}


.bg-circle-three {
    width: 105px;

    height: 105px;

    background: #f7e4a7;

    right: 9%;

    top: 13%;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    width: min(100%, 1050px);

    min-height: 650px;

    background: #ffffff;

    border-radius: 34px;

    overflow: hidden;

    display: grid;

    grid-template-columns: 43% 57%;

    position: relative;

    z-index: 2;

    box-shadow:
        0 30px 70px rgba(49, 92, 73, 0.14);
}


/* =========================================================
   LEFT SIDE
========================================================= */

.login-left {
    background: #315c49;

    position: relative;

    overflow: hidden;

    padding: 42px;

    display: flex;

    flex-direction: column;

    min-height: 650px;
}


/* Bottom circle */

.left-circle {
    position: absolute;

    width: 230px;

    height: 230px;

    border-radius: 50%;

    background: rgba(97, 201, 165, 0.95);

    right: -105px;

    bottom: -105px;

    z-index: 1;
}


/* Top circle */

.left-circle-two {
    position: absolute;

    width: 180px;

    height: 180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    left: -90px;

    top: -90px;

    z-index: 1;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 14px;

    position: relative;

    z-index: 5;
}


.brand img {
    width: 48px;

    height: 48px;

    object-fit: contain;

    display: block;
}


.brand-text h2 {
    font-family: 'Fredoka', sans-serif;

    font-size: 30px;

    line-height: 1;

    color: #ffffff;

    letter-spacing: -1px;
}


.brand-text p {
    margin-top: 6px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.5px;

    color: #d9f3df;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.left-content {
    margin-top: auto;

    position: relative;

    z-index: 4;

    max-width: 380px;
}


.left-content h1 {
    font-family: 'Fredoka', sans-serif;

    font-size: clamp(50px, 5vw, 72px);

    line-height: 0.95;

    letter-spacing: -2px;

    color: #ffffff;
}


.left-content h1 span {
    display: block;

    color: #61c9a5;
}


.left-content p {
    margin-top: 24px;

    max-width: 360px;

    font-size: 17px;

    line-height: 1.7;

    color: #e7f6ee;
}


/* =========================================================
   BEAR
========================================================= */

.login-bear {
    position: absolute;

    width: 300px;

    max-width: 48%;

    right: 8px;

    bottom: -5px;

    z-index: 3;

    object-fit: contain;

    display: block;
}


/* =========================================================
   RIGHT SIDE
========================================================= */

.login-right {
    padding: 65px 70px;

    display: flex;

    align-items: center;

    background: #ffffff;
}


.login-form-wrapper {
    width: 100%;

    max-width: 540px;

    margin: 0 auto;
}


/* =========================================================
   BADGE
========================================================= */

.login-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 20px;

    border-radius: 30px;

    background: #d9f3df;

    color: #315c49;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


/* =========================================================
   HEADING
========================================================= */

.login-heading {
    margin-top: 25px;

    font-family: 'Fredoka', sans-serif;

    font-size: 62px;

    line-height: 0.95;

    color: #315c49;

    letter-spacing: -2px;
}


.login-subtitle {
    margin-top: 14px;

    font-size: 18px;

    color: #6d8b7d;
}


/* =========================================================
   ERROR
========================================================= */

.error-message {
    width: 100%;

    margin-top: 28px;

    padding: 14px 18px;

    border-radius: 12px;

    background: #fde3e3;

    color: #a44242;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   LOGIN FORM
========================================================= */

.login-form {
    width: 100%;

    margin-top: 38px;

    display: block;
}


.form-group {
    width: 100%;

    margin-bottom: 24px;

    display: block;
}


.form-group label {
    display: block;

    margin-bottom: 9px;

    font-size: 15px;

    font-weight: 800;

    color: #315c49;
}


/* =========================================================
   INPUT
========================================================= */

.form-input {
    width: 100%;

    height: 62px;

    padding: 0 20px;

    border: 2px solid #dcebe4;

    border-radius: 17px;

    background: #fffdfa;

    color: #315c49;

    font-family: 'Nunito', sans-serif;

    font-size: 16px;

    outline: none;

    display: block;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-input::placeholder {
    color: #a7bbb2;
}


.form-input:focus {
    border-color: #61c9a5;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(97, 201, 165, 0.14);
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.forgot-password {
    width: 100%;

    display: block;

    margin-top: -8px;

    margin-bottom: 22px;
}


.forgot-password-link {
    display: inline-block;

    color: #315c49;

    font-family: 'Nunito', sans-serif;

    font-size: 14px;

    font-weight: 800;

    text-decoration: none;

    border: none;

    background: transparent;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.forgot-password-link:visited {
    color: #315c49;

    text-decoration: none;
}


.forgot-password-link:hover {
    color: #4eb994;

    text-decoration: none;

    transform: translateX(3px);
}


.forgot-password-link:active {
    color: #4eb994;

    text-decoration: none;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;

    height: 62px;

    display: block;

    border: none;

    border-radius: 32px;

    background: #61c9a5;

    color: #ffffff;

    font-family: 'Nunito', sans-serif;

    font-size: 17px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.login-button:hover {
    background: #4eb994;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(97, 201, 165, 0.25);
}


.login-button:active {
    transform: translateY(0);
}


/* =========================================================
   BOTTOM LINKS
========================================================= */

.login-links {
    width: 100%;

    margin-top: 27px;

    text-align: center;

    color: #78968a;

    font-size: 15px;

    line-height: 1.8;

    display: block;
}


.account-link {
    width: 100%;

    display: block;
}


.login-links a {
    color: #315c49;

    font-weight: 800;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.login-links a:hover {
    color: #61c9a5;

    text-decoration: none;
}


.back-link {
    display: block;

    margin-top: 8px;
}


/* =========================================================
   AUTOFILL
========================================================= */

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {

    -webkit-text-fill-color: #315c49;

    -webkit-box-shadow:
        0 0 0 1000px #fffdfa inset;

    transition:
        background-color 5000s ease-in-out 0s;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .login-card {
        width: 95%;

        grid-template-columns: 42% 58%;
    }


    .login-left {
        padding: 35px;
    }


    .login-right {
        padding: 50px 45px;
    }


    .login-heading {
        font-size: 55px;
    }


    .login-bear {
        width: 260px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .login-page {
        padding: 25px 18px;
    }


    .login-card {
        width: 100%;

        max-width: 600px;

        grid-template-columns: 1fr;

        border-radius: 28px;
    }


    .login-left {
        min-height: 380px;

        padding: 32px;
    }


    .left-content {
        margin-top: 80px;

        max-width: 330px;
    }


    .left-content h1 {
        font-size: 50px;
    }


    .left-content p {
        font-size: 15px;

        max-width: 280px;
    }


    .login-bear {
        width: 220px;

        right: -5px;

        bottom: -15px;
    }


    .login-right {
        padding: 45px 40px;
    }


    .login-heading {
        font-size: 52px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .login-page {
        padding: 15px;
    }


    .login-card {
        border-radius: 24px;
    }


    .login-left {
        min-height: 330px;

        padding: 28px;
    }


    .brand {
        gap: 10px;
    }


    .brand img {
        width: 40px;

        height: 40px;
    }


    .brand-text h2 {
        font-size: 25px;
    }


    .brand-text p {
        font-size: 9px;
    }


    .left-content {
        margin-top: 55px;
    }


    .left-content h1 {
        font-size: 42px;
    }


    .left-content p {
        font-size: 14px;

        max-width: 240px;
    }


    .login-bear {
        width: 175px;

        right: -15px;
    }


    .login-right {
        padding: 35px 25px;
    }


    .login-heading {
        font-size: 45px;
    }


    .login-subtitle {
        font-size: 16px;
    }


    .form-input,
    .login-button {
        height: 56px;
    }


    .forgot-password {
        margin-top: -6px;

        margin-bottom: 20px;
    }


    .forgot-password-link {
        font-size: 13px;
    }
}