
/* =================================
   QUICKLOAN LOGIN PAGE
   MOBILE + DESKTOP RESPONSIVE
================================= */

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

html, body {
    width: 100%;
    min-height: 100%;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: #f5f5ff;
    overflow-x: hidden;
}

/* MAIN PAGE */

.login-page {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: linear-gradient(
        135deg,
        #ffffff,
        #f9f8ff,
        #f0edff
    );

    padding: 1px 20px;
}

/* BACK BUTTON */

.back-button {
    position: absolute;
    top: 30px;
    left: 25px;

    text-decoration: none;
    color: #17152b;

    font-size: 30px;
    font-weight: 400;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* LOGO */

.logo {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 7px;

    margin-top: 65px;

    font-size: 23px;
    font-weight: 800;
    font-style: italic;

    color: #17152b;
}

.logo-icon {
    font-size: 36px;
    color: #7835e8;
}

/* LOGIN CONTENT */

.login-content {
    width: 100%;
    max-width: 340px;

    margin-top: 40px;
}

.login-content h1 {
    font-size: 23px;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.7px;

    color: #151326;
}

.subtitle {
    font-size: 13px;
    text-align: center;

    color: #49465b;

    margin-top: 12px;
    margin-bottom: 25px;
}

/* PHONE INPUT */

.phone-input {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;

    padding: 0 12px;
    gap: 10px;

    background: #ffffff;

    border: 1px solid #d5d9e8;
    border-radius: 11px;

    box-shadow: 0 1px 3px #00000005;

    transition: 0.2s;
}

.phone-input:focus-within {
    border-color: #7733e7;
    box-shadow: 0 0 0 3px #7733e715;
}

/* COUNTRY CODE */

.country-code {
    display: flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;

    color: #17152b;
    font-size: 13px;
    font-weight: 700;
}

.flag {
    font-size: 20px;
}

.divider {
    height: 23px;
    width: 1px;
    background: #a9a9b8;
}

/* NUMBER INPUT */

.phone-input input {
    width: 100%;
    min-width: 0;

    border: none;
    outline: none;

    background: transparent;

    font-size: 14px;
    font-weight: 600;

    color: #17152b;
}

.phone-input input::placeholder {
    color: #292638;
    opacity: 1;
}

/* SEND OTP BUTTON */

.send-otp {
    width: 100%;
    height: 42px;

    margin-top: 29px;

    border: none;
    border-radius: 11px;

    background: linear-gradient(
        100deg,
        #8125f1,
        #6711d7,
        #4910b5
    );

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 5px 12px #6c20d91c;

    transition: 0.2s;
}

.send-otp:hover {
    filter: brightness(1.08);
}

.send-otp:active {
    transform: scale(0.98);
}

/* MESSAGE */

.message {
    min-height: 17px;
    margin-top: 8px;

    text-align: center;
    font-size: 11px;
    color: #d12d45;
}

/* OR DIVIDER */

.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 17px;
    margin-bottom: 18px;
}

.or-divider span {
    height: 1px;
    flex: 1;

    background: #deddeb;
}

.or-divider p {
    font-size: 12px;
    color: #252238;
    white-space: nowrap;
}

/* GOOGLE BUTTON */

.google-button {
    width: 100%;
    height: 42px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;

    border: 1px solid #d5d9e8;
    border-radius: 11px;

    background: #ffffff;

    color: #17152b;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.google-button:hover {
    background: #f9f7ff;
    border-color: #b9a6e9;
}

.google-icon {
    font-size: 22px;
    font-weight: 900;

    background: conic-gradient(
        from -45deg,
        #4285f4 0deg 90deg,
        #34a853 90deg 180deg,
        #fbbc05 180deg 270deg,
        #ea4335 270deg 360deg
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* TERMS */

.terms {
    width: 100%;
    max-width: 340px;

    text-align: center;

    margin-top: 25px;
    margin-bottom: 25px;

    font-size: 10px;
    line-height: 1.6;

    color: #373449;
}

.terms a {
    color: #5415b9;
    font-size: 11px;
    font-weight: 700;

    text-decoration: underline;
}

/* =================================
   DESKTOP WEBSITE
================================= */

@media screen and (min-width: 768px) {

    .login-page {
        justify-content: center;
        padding: 40px 20px;
    }

    .back-button {
        top: 35px;
        left: 45px;
    }

    .logo {
        margin-top: 0;
        font-size: 27px;
    }

    .login-content {
        max-width: 390px;
        margin-top: 55px;
    }

    .login-content h1 {
        font-size: 30px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .phone-input {
        height: 55px;
        padding: 0 16px;
    }

    .phone-input input {
        font-size: 16px;
    }

    .send-otp {
        height: 53px;
        font-size: 16px;
    }

    .google-button {
        height: 53px;
        font-size: 14px;
    }

    .terms {
        max-width: 390px;
        margin-top: 28px;
        font-size: 12px;
    }
}

/* =================================
   SMALL MOBILE
================================= */

@media screen and (max-width: 360px) {

    .login-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .logo {
        font-size: 21px;
    }

    .login-content h1 {
        font-size: 22px;
    }

    .login-content {
        margin-top: 35px;
    }

    .back-button {
        left: 17px;
    }
}
