* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f7fb;
    color: #172b4d;

    /* Prevent unwanted page scrolling */
    overflow: hidden;
}


/* =========================
   PAGE
========================= */

.login-page {

    width: 100%;
    height: 100vh;
    height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    /*
       Small horizontal padding only.
       Vertical padding is avoided so the
       page doesn't become taller than viewport.
    */
    padding: 15px;

    position: relative;

    overflow: hidden;
}


/* =========================
   BACKGROUND DESIGN
========================= */

.background-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-one {
    width: 450px;
    height: 450px;
    background: rgba(37, 99, 235, 0.04);

    top: -220px;
    left: -180px;
}

.circle-two {
    width: 550px;
    height: 550px;
    background: rgba(16, 42, 67, 0.035);

    bottom: -300px;
    right: -220px;
}


/* =========================
   LOGIN CONTAINER
========================= */

.login-container {
    width: 100%;
    max-width: 440px;

    position: relative;
    z-index: 2;
}


/* =========================
   BRAND
========================= */

.brand {
    text-align: center;
    margin-bottom: 18px;
}

.brand-icon {
    width: 58px;
    height: 58px;

    background: #2563eb;
    color: white;

    border-radius: 13px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto 10px;

    font-size: 24px;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, .20);
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #102a43;
    margin: 0;
}

.brand-subtitle {
    margin-top: 3px;
    font-size: 12px;
    color: #8a99aa;
}


/* =========================
   LOGIN CARD
========================= */

.login-card {

    background: #ffffff;

    border: 1px solid #e7edf4;

    border-radius: 15px;

    padding: 30px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, .08);
}


/* =========================
   LOGIN HEADING
========================= */

.login-heading {
    text-align: center;
    margin-bottom: 24px;
}

.login-heading h2 {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #172b4d;
}

.login-heading p {
    margin: 0;
    color: #8a99aa;
    font-size: 13px;
}


/* =========================
   FORM
========================= */

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper>i {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #9aa7b5;

    z-index: 2;

    font-size: 14px;
}

.form-control {
    height: 48px;

    border-radius: 9px;

    border: 1px solid #dce3eb;

    padding-left: 43px;
    padding-right: 43px;

    font-size: 14px;

    box-shadow: none;
}

.form-control:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08);
}

.password-toggle {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #9aa7b5;

    cursor: pointer;

    z-index: 3;
}


/* =========================
   OPTIONS
========================= */

.login-options {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 15px 0 20px;
}

.remember-label {
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}

.remember-label input {
    margin-right: 6px;
    accent-color: #2563eb;
}

.forgot-password {
    font-size: 13px;

    color: #2563eb;

    text-decoration: none;

    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}


/* =========================
   LOGIN BUTTON
========================= */

.login-btn {

    width: 100%;

    height: 48px;

    border: none;

    border-radius: 9px;

    background: #2563eb;

    color: white;

    font-size: 14px;

    font-weight: 600;

    transition: .2s;
}

.login-btn:hover {

    background: #1d4ed8;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, .20);
}


/* =========================
   SECURITY
========================= */

.security {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    color: #9aa7b5;

    font-size: 11px;

    margin-top: 18px;
}

.security i {
    font-size: 10px;
}


/* =========================
   FOOTER
========================= */

.footer {

    text-align: center;

    margin-top: 12px;

    color: #a0acb8;

    font-size: 10px;
}


/* =====================================================
   SMALL HEIGHT LAPTOPS
   Example: 1366 x 768, 1280 x 720
===================================================== */

@media (max-height: 750px) {

    .login-page {
        padding: 10px;
    }

    .brand {
        margin-bottom: 12px;
    }

    .brand-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 6px;
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .login-card {
        padding: 23px 28px;
    }

    .login-heading {
        margin-bottom: 18px;
    }

    .login-heading h2 {
        font-size: 21px;
    }

    .login-heading p {
        font-size: 12px;
    }

    .form-control {
        height: 44px;
    }

    .login-options {
        margin: 12px 0 16px;
    }

    .login-btn {
        height: 44px;
    }

    .security {
        margin-top: 13px;
    }

    .footer {
        margin-top: 8px;
    }
}


/* =====================================================
   VERY SMALL HEIGHT DEVICES
===================================================== */

@media (max-height: 600px) {

    .login-page {
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /*
       This is only a fallback for extremely
       short screens. Normal devices will never
       need scrolling.
    */
    .login-container {
        margin: auto;
    }

    .brand {
        margin-bottom: 8px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin-bottom: 4px;
    }

    .brand-name {
        font-size: 19px;
    }

    .login-card {
        padding: 18px 22px;
    }

    .login-heading {
        margin-bottom: 14px;
    }

    .login-heading h2 {
        font-size: 19px;
    }

    .mb-4 {
        margin-bottom: 12px !important;
    }

    .form-control {
        height: 40px;
    }

    .login-options {
        margin: 10px 0 12px;
    }

    .login-btn {
        height: 40px;
    }

    .security {
        margin-top: 10px;
    }

    .footer {
        margin-top: 6px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 500px) {

    .login-page {
        padding: 12px;
    }

    .login-container {
        max-width: 400px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .brand {
        margin-bottom: 15px;
    }

    .brand-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .login-heading h2 {
        font-size: 21px;
    }

    .login-heading p {
        font-size: 12px;
    }
}


/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 360px) {

    .login-page {
        padding: 8px;
    }

    .login-card {
        padding: 20px 16px;
    }

    .brand-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .brand-name {
        font-size: 19px;
    }

    .login-heading {
        margin-bottom: 18px;
    }

    .login-heading h2 {
        font-size: 20px;
    }

    .login-options {
        font-size: 11px;
    }

    .remember-label,
    .forgot-password {
        font-size: 11px;
    }
}

/* =========================================
   FINAL VIEWPORT FIX
========================================= */

html,
body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.login-page {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 15px !important;

    overflow: hidden !important;
}

.login-container {
    width: 100% !important;
    max-width: 440px !important;

    margin: 0 !important;
}


/* =========================================
   COMPACT DESKTOP LOGIN
========================================= */

.brand {
    margin-bottom: 14px !important;
}

.brand-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
    margin-bottom: 7px !important;
}

.brand-name {
    font-size: 22px !important;
}

.brand-subtitle {
    font-size: 11px !important;
    margin-top: 2px !important;
}

.login-card {
    padding: 26px !important;
}

.login-heading {
    margin-bottom: 20px !important;
}

.login-heading h2 {
    font-size: 22px !important;
    margin-bottom: 4px !important;
}

.login-heading p {
    font-size: 12px !important;
}

.form-label {
    margin-bottom: 5px !important;
}

.mb-4 {
    margin-bottom: 14px !important;
}

.form-control {
    height: 46px !important;
}

.login-options {
    margin: 13px 0 17px !important;
}

.login-btn {
    height: 46px !important;
}

.security {
    margin-top: 14px !important;
}

.footer {
    margin-top: 8px !important;
}


@media (max-width: 500px) {

    .login-page {
        padding: 12px !important;
    }

    .login-container {
        max-width: 400px !important;
    }

    .brand {
        margin-bottom: 12px !important;
    }

    .brand-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }

    .brand-name {
        font-size: 21px !important;
    }

    .login-card {
        padding: 22px 18px !important;
    }

}