/* =========================================================
   SEEK — LOGIN
   ========================================================= */


.login-page {
    position: relative;

    width: 100%;
    min-height: 100vh;

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

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 55%,
            #f4f9ff 100%
        );

    padding: 40px 24px;
}


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

.login-background {
    position: absolute;
    inset: 0;

    pointer-events: none;
    overflow: hidden;
}


/*
    Large soft blue glow at the bottom.
    This takes inspiration from the large blue
    circular forms in the reference image.
*/

.glow-one {
    position: absolute;

    width: 650px;
    height: 650px;

    left: 50%;
    bottom: -520px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(22, 135, 248, 0.32) 0%,
            rgba(22, 135, 248, 0.16) 38%,
            rgba(22, 135, 248, 0.05) 63%,
            rgba(22, 135, 248, 0) 74%
        );

    filter: blur(3px);
}


/* Smaller glow */

.glow-two {
    position: absolute;

    width: 360px;
    height: 360px;

    top: -220px;
    right: -170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(71, 124, 255, 0.13),
            rgba(71, 124, 255, 0)
        );

    filter: blur(4px);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.login-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 440px;

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


/* =========================================================
   BRAND
   ========================================================= */

.login-brand {
    margin-bottom: 32px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;

    color: var(--text);

    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.055em;
}

.brand-dot {
    color: var(--blue);
}


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

.login-card {
    width: 100%;

    padding: 38px;

    border: 1px solid rgba(228, 234, 241, 0.85);

    border-radius: var(--radius-xl);

    background:
        rgba(255, 255, 255, 0.92);

    box-shadow:
        0 20px 60px rgba(31, 55, 88, 0.07);

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


/* =========================================================
   HEADING
   ========================================================= */

.login-heading {
    margin-bottom: 30px;

    text-align: center;
}

.login-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 15px;

    padding: 7px 11px;

    border-radius: var(--radius-round);

    background: var(--blue-light);

    color: var(--blue-dark);

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.09em;
}

.login-heading h1 {
    margin-bottom: 10px;

    font-size: clamp(1.75rem, 4vw, 2.15rem);

    letter-spacing: -0.045em;
}

.login-heading p {
    max-width: 330px;

    margin: 0 auto;

    color: var(--text-secondary);

    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.forgot-password {
    color: var(--blue);

    font-size: 0.79rem;
    font-weight: 600;

    transition: color var(--transition);
}

.forgot-password:hover {
    color: var(--blue-deep);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

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

    border-radius: 10px;

    background: transparent;

    color: var(--text-muted);

    cursor: pointer;

    transition:
        color var(--transition),
        background var(--transition);
}

.password-toggle:hover {
    color: var(--blue);
    background: var(--blue-soft);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(22, 135, 248, 0.35);
    outline-offset: 1px;
}

.eye-icon {
    width: 20px;
    height: 20px;
}


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

.login-button {
    width: 100%;

    margin-top: 3px;
}

.login-button svg {
    width: 18px;
    height: 18px;

    transition: transform var(--transition);
}

.login-button:hover svg {
    transform: translateX(3px);
}


/* =========================================================
   FORM MESSAGE
   ========================================================= */

.form-message {
    display: none;

    margin-top: -7px;

    padding: 11px 13px;

    border-radius: var(--radius-sm);

    font-size: 0.8rem;
    line-height: 1.45;
}

.form-message.error {
    display: block;

    background: var(--danger-light);

    color: var(--danger);
}

.form-message.success {
    display: block;

    background: var(--success-light);

    color: var(--success);
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    margin-top: 25px;

    text-align: center;
}

.login-footer p {
    color: var(--text-muted);

    font-size: 0.72rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .login-page {
        padding: 32px 20px;
    }

    .login-card {
        padding: 34px;
    }

    .glow-one {
        width: 550px;
        height: 550px;

        bottom: -440px;
    }
}


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

@media (max-width: 520px) {

    .login-page {
        align-items: flex-start;

        min-height: 100svh;

        padding:
            max(32px, env(safe-area-inset-top))
            18px
            max(24px, env(safe-area-inset-bottom));
    }


    .login-container {
        min-height:
            calc(
                100svh
                - 56px
            );

        justify-content: center;
    }


    .login-brand {
        margin-bottom: 27px;
    }


    .brand-logo {
        font-size: 1.4rem;
    }


    .login-card {
        padding: 30px 22px;

        border-radius: 22px;

        box-shadow:
            0 15px 45px rgba(31, 55, 88, 0.06);
    }


    .login-heading {
        margin-bottom: 27px;
    }


    .login-label {
        margin-bottom: 13px;
    }


    .login-heading h1 {
        margin-bottom: 9px;

        font-size: 1.75rem;
    }


    .login-heading p {
        max-width: 290px;

        font-size: 0.86rem;
    }


    .login-form {
        gap: 19px;
    }


    .forgot-password {
        font-size: 0.75rem;
    }


    .glow-one {
        width: 500px;
        height: 500px;

        bottom: -395px;
    }


    .glow-two {
        width: 280px;
        height: 280px;

        top: -190px;
        right: -160px;
    }


    .login-footer {
        margin-top: 22px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

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

    .login-card {
        padding: 27px 18px;
    }

    .password-label {
        gap: 10px;
    }
}


/* =========================================================
   BUTTON LOADING SPINNER
   ========================================================= */

.button-spinner {
    width: 17px;
    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {

    to {
        transform: rotate(360deg);
    }

}