/* =========================================================
   ASSETPRO LOGIN
========================================================= */

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


:root {
    --bg: #06111f;
    --card: #0b192b;
    --card-border: rgba(255, 255, 255, 0.08);

    --input: #081628;
    --input-border: rgba(255, 255, 255, 0.1);

    --text: #f5f8fc;
    --muted: #8d9caf;

    --blue: #2f80ed;
    --blue-hover: #236fd5;

    --danger: #ef5350;

    --radius: 14px;
}


html {
    min-height: 100%;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(47, 128, 237, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(47, 128, 237, 0.08),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


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

.login-page {
    min-height: 100vh;

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

    padding: 40px 20px;
}


.login-container {
    width: 100%;
    max-width: 450px;
}


/* =========================================================
   LOGO
========================================================= */

.auth-logo {
    display: flex;

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

    gap: 10px;

    margin-bottom: 28px;

    color: #ffffff;

    text-decoration: none;

    font-size: 26px;
    font-weight: 800;

    letter-spacing: -0.7px;
}


.auth-logo span:last-child span {
    color: var(--blue);
}


.logo-mark {
    width: 38px;
    height: 38px;

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

    border-radius: 10px;

    background: var(--blue);

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
}


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

.login-card {
    padding: 34px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.01)
        ),
        var(--card);

    border: 1px solid var(--card-border);

    border-radius: var(--radius);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   HEADER
========================================================= */

.login-header {
    margin-bottom: 28px;

    text-align: center;
}


.login-header h1 {
    margin-bottom: 8px;

    color: #ffffff;

    font-size: 28px;
    font-weight: 750;

    letter-spacing: -0.5px;
}


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

    font-size: 14px;

    line-height: 1.6;
}


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

.login-form {
    display: flex;

    flex-direction: column;

    gap: 19px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.form-group label,
.label-row label {
    color: #dbe4ef;

    font-size: 13px;

    font-weight: 600;
}


.label-row {
    display: flex;

    align-items: center;
    justify-content: space-between;
}


.forgot-link {
    color: #6ea9ff;

    font-size: 12px;

    text-decoration: none;
}


.forgot-link:hover {
    color: #8dbdff;

    text-decoration: underline;
}


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

.form-group input {
    width: 100%;

    min-height: 50px;

    padding: 0 14px;

    background: var(--input);

    border: 1px solid var(--input-border);

    border-radius: 10px;

    outline: none;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-group input::placeholder {
    color: #65758a;
}


.form-group input:focus {
    border-color: rgba(47, 128, 237, 0.75);

    background: #09192d;

    box-shadow:
        0 0 0 3px rgba(47, 128, 237, 0.12);
}


.form-group input.input-error {
    border-color: rgba(239, 83, 80, 0.8);
}


.form-group input.input-success {
    border-color: rgba(38, 166, 154, 0.7);
}


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

.password-input {
    position: relative;
}


.password-input input {
    padding-right: 68px;
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    color: #78aef7;

    cursor: pointer;

    font-family: inherit;

    font-size: 12px;

    font-weight: 650;
}


.password-toggle:hover {
    color: #a6caff;
}


/* =========================================================
   ERRORS
========================================================= */

.field-error {
    min-height: 0;

    color: var(--danger);

    font-size: 12px;

    line-height: 1.4;
}


.field-error:not(:empty) {
    margin-top: -2px;
}


/* =========================================================
   REMEMBER
========================================================= */

.remember {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #aebacc;

    font-size: 13px;

    cursor: pointer;
}


.remember input {
    width: 16px;
    height: 16px;

    accent-color: var(--blue);

    cursor: pointer;
}


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

.login-button {
    position: relative;

    width: 100%;

    min-height: 51px;

    margin-top: 3px;

    border: 0;

    border-radius: 10px;

    background: var(--blue);

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.login-button:hover {
    background: var(--blue-hover);

    box-shadow:
        0 10px 25px rgba(47, 128, 237, 0.2);

    transform: translateY(-1px);
}


.login-button:active {
    transform: translateY(0);
}


.login-button:disabled {
    opacity: 0.7;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   LOADER
========================================================= */

.button-loader {
    display: none;

    width: 18px;
    height: 18px;

    margin: auto;

    border: 2px solid rgba(255, 255, 255, 0.35);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation:
        loginSpin 0.7s linear infinite;
}


.login-button.loading .button-text {
    display: none;
}


.login-button.loading .button-loader {
    display: block;
}


@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   REGISTER LINK
========================================================= */

.register-link {
    margin-top: 24px;

    text-align: center;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}


.register-link a {
    margin-left: 4px;

    color: #6ea9ff;

    font-weight: 650;

    text-decoration: none;
}


.register-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.copyright {
    margin-top: 22px;

    color: #65758a;

    font-size: 11px;

    text-align: center;
}


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

@media (max-width: 520px) {

    .login-page {
        padding: 25px 16px;
    }


    .login-card {
        padding: 25px 20px;
    }


    .login-header h1 {
        font-size: 25px;
    }


    .form-group input {
        font-size: 16px;
    }

}


@media (max-width: 360px) {

    .login-card {
        padding: 22px 16px;
    }


    .label-row {
        align-items: flex-start;

        gap: 10px;
    }

}