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

.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    overflow: hidden;

    background:

        linear-gradient(
            rgba(2,6,18,0.72),
            rgba(2,6,18,0.88)
        ),

        url('/assets/img/login-bg.png');

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    background-attachment: fixed;

    padding: 20px;
}

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

.login-card {

    width: 100%;

    max-width: 320px;

    padding: 30px;

    border-radius: 24px;

    position: relative;

    overflow: visible;

    background:
        rgba(10,14,24,0.10);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.45);

    text-align: center;
}

/* =========================
TOP LIGHT
========================= */

.login-card::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.05),
            transparent 45%
        );

    pointer-events: none;
}

/* =========================
BLUE GLOW
========================= */

.login-card::after {

    content: '';

    position: absolute;

    width: 220px;

    height: 220px;

    background:
        radial-gradient(
            circle,
            rgba(37,99,235,0.20),
            transparent 70%
        );

    top: -110px;

    right: -100px;

    pointer-events: none;
}

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

.login-logo {

    width: 68px;

    height: 68px;

    margin: 0 auto 20px;

    border-radius: 18px;

    background:
        rgba(37,99,235,0.10);

    border:
        1px solid rgba(37,99,235,0.18);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;

    color: #3b82f6;

    box-shadow:
        0 0 30px rgba(37,99,235,0.18);
}

/* =========================
TITLE
========================= */

.login-card h1 {

    font-size: 26px;

    font-weight: 700;

    margin-bottom: 18px;

    color: white;

    letter-spacing: 1px;
}

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

.login-form {

    display: flex;

    flex-direction: column;

    gap: 18px;
}

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

.form-group {

    position: relative;

    text-align: left;
}

/* =========================
LABEL
========================= */

.form-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 12px;

    font-weight: 500;

    color: #94a3b8;

    letter-spacing: 0.5px;
}

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

.form-group input {

    width: 100%;

    height: 50px;

    padding-left: 46px;

    padding-right: 14px;

    box-sizing: border-box;

    border-radius: 10px;

    border:
        1px solid rgba(255,255,255,0.08);

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

    color: white;

    font-size: 13px;

    outline: none;

    transition: 0.25s ease;
}

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

.form-group input:focus {

    border-color:
        rgba(59,130,246,0.7);

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

    box-shadow:
        0 0 25px rgba(37,99,235,0.15);
}

/* =========================
PLACEHOLDER
========================= */

.form-group input::placeholder {

    color: #64748b;
}

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

.form-icon {

    position: absolute;

    left: 16px;

    top: 50%;

    margin-top: 10px;

    transform: translateY(-50%);

    color: #64748b;

    font-size: 15px;

    pointer-events: none;
}

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

.login-form button {

    border: none;

    height: 50px;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #3b82f6 0%,
            #2563eb 100%
        );

    color: white;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition: 0.25s ease;

    box-shadow:
        0 10px 30px rgba(37,99,235,0.25);
}

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

.login-form button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 15px 40px rgba(37,99,235,0.35);
}

/* =========================
ERROR MESSAGE
========================= */

.login-error {

    position: absolute;

    left: 50%;

    bottom: -75px;

    width: 100%;

    max-width: 280px;

    padding: 12px;

    border-radius: 12px;

    background:
        rgba(239,68,68,0.12);

    border:
        1px solid rgba(239,68,68,0.25);

    backdrop-filter: blur(10px);

    color: #f87171;

    font-size: 13px;

    text-align: center;

    z-index: 50;

    opacity: 0;

    animation:
        loginErrorIn 0.25s ease forwards,
        loginErrorOut 0.4s ease 4s forwards;
}

/* =========================
ERROR IN
========================= */

@keyframes loginErrorIn {

    from {

        opacity: 0;

        transform:
            translateX(-50%)
            translateY(-10px);
    }

    to {

        opacity: 1;

        transform:
            translateX(-50%)
            translateY(0);
    }
}

/* =========================
ERROR OUT
========================= */

@keyframes loginErrorOut {

    to {

        opacity: 0;

        transform:
            translateX(-50%)
            translateY(-10px);
    }
}

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

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

    .login-card {

        max-width: 90%;

        padding: 40px;
        margin-top:-100px;
    }
}

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

.login-loader {

    position: fixed;

    inset: 0;

    background: #060816;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 9999;

    transition: opacity 0.4s ease;
}

.login-loader.hidden {

    opacity: 0;

    pointer-events: none;
}

/* =========================
SPINNER
========================= */

.loader-spinner {

    width: 54px;

    height: 54px;

    border-radius: 50%;

    border:
        3px solid rgba(255,255,255,0.08);

    border-top:
        3px solid #3b82f6;

    animation:
        spin 0.8s linear infinite;
}

/* =========================
SPIN
========================= */

@keyframes spin {

    to {

        transform: rotate(360deg);
    }
}