/* =========================================================
   LOGIN PAGE
========================================================= */

:root {
    --login-primary: #1e3a8a;
    --login-primary-dark: #172554;
    --login-primary-light: #eff6ff;

    --login-gold: #c99a3d;
    --login-gold-light: #f4e5bd;

    --login-text: #1e293b;
    --login-muted: #64748b;

    --login-border: #e2e8f0;

    --login-background: #f1f5f9;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;
}

body {
    font-family:
        "Plus Jakarta Sans",
        Arial,
        sans-serif;

    color: var(--login-text);

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e3a8a
        );
}


/* =========================================================
   PAGE
========================================================= */

.login-page {
    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 50px 20px;

    overflow: hidden;
}


/* =========================================================
   BACKGROUND DECORATION
========================================================= */

.login-background::before,
.login-background::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.login-background::before {
    width: 500px;
    height: 500px;

    top: -220px;
    left: -180px;

    background: rgba(
        255,
        255,
        255,
        0.05
    );
}

.login-background::after {
    width: 650px;
    height: 650px;

    right: -300px;
    bottom: -350px;

    background: rgba(
        255,
        255,
        255,
        0.05
    );
}


/* =========================================================
   CONTAINER
========================================================= */

.login-container {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 430px;

    margin: 0 auto;
}


/* =========================================================
   BRAND
========================================================= */

.login-brand {
    text-align: center;

    color: #ffffff;

    margin-bottom: 28px;
}

.login-logo {
    width: 64px;
    height: 64px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 18px;

    background: #ffffff;

    color: var(--login-primary);

    font-size: 19px;

    font-weight: 700;

    box-shadow:
        0 15px 35px
        rgba(
            0,
            0,
            0,
            0.15
        );
}

.login-brand h1 {
    margin: 0;

    font-size: 25px;

    line-height: 1.3;

    font-weight: 700;
}

.login-brand p {
    margin: 8px 0 0;

    color: rgba(
        255,
        255,
        255,
        0.72
    );

    font-size: 13px;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    padding: 38px;

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 30px 70px
        rgba(
            0,
            0,
            0,
            0.20
        );
}


/* =========================================================
   HEADER
========================================================= */

.login-card-header {
    text-align: center;

    margin-bottom: 22px;
}

.login-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--login-primary);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.8px;
}

.login-card-header h2 {
    margin: 0;

    font-size: 28px;

    line-height: 1.25;
}

.login-card-header p {
    margin: 8px 0 0;

    color: var(--login-muted);

    font-size: 13px;
}


/* =========================================================
   DATE & TIME
========================================================= */

.login-datetime {
    padding: 16px 18px;

    margin-bottom: 28px;

    text-align: center;

    border-radius: 12px;

    background: var(--login-primary-light);

    border: 1px solid #dbeafe;
}

.login-date {
    color: var(--login-primary);

    font-size: 12px;

    font-weight: 600;
}

.login-time {
    margin-top: 4px;

    color: var(--login-text);

    font-size: 21px;

    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group label {
    color: var(--login-text);

    font-size: 13px;

    font-weight: 600;
}

.form-group input {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    border: 1px solid var(--login-border);

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: var(--login-text);

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    border-color: var(--login-primary);

    box-shadow:
        0 0 0 4px
        rgba(
            30,
            58,
            138,
            0.10
        );
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.btn-login {
    width: 100%;

    height: 52px;

    margin-top: 4px;

    border: 0;

    border-radius: 10px;

    background: var(--login-primary);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-login:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(
            30,
            58,
            138,
            0.25
        );
}

.btn-login:active {
    transform: translateY(0);
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #f1f5f9;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
}

.login-copyright {
    margin-top: 20px;

    text-align: center;

    color: rgba(
        255,
        255,
        255,
        0.55
    );

    font-size: 11px;
}

/* =========================================================
   HOMEPAGE BUTTON
========================================================= */

.login-home-button {
    display: block;

    width: fit-content;

    margin: 20px auto 0;

    color: rgba(
        255,
        255,
        255,
        0.75
    );

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.login-home-button:hover {
    color: #ffffff;

    transform: translateY(-1px);
}

/* =========================================================
   LOGIN ERROR POPUP
========================================================= */

.login-alert {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(8, 20, 45, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.login-alert__box {
    width: 420px;
    max-width: calc(100vw - 40px);

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 16px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.22);

    box-sizing: border-box;

    animation: loginAlertShow .2s ease-out;
}

.login-alert__icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff1f2;
    color: #dc2626;

    font-size: 20px;
    font-weight: 800;
}

.login-alert__content {
    flex: 1;
    min-width: 0;
}

.login-alert__title {
    margin: 0 0 5px;

    color: #13294B;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.login-alert__message {
    margin: 0;

    color: #64748B;

    font-size: 13px;
    line-height: 1.5;
}

.login-alert__close {
    flex: 0 0 auto;

    min-width: 58px;
    height: 36px;

    padding: 0 14px;

    border: 0;
    border-radius: 8px;

    background: #1E5EFF;
    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .18s ease,
        transform .18s ease;
}

.login-alert__close:hover {
    background: #1748C8;
}

.login-alert__close:active {
    transform: scale(.97);
}

@keyframes loginAlertShow {

    from {
        opacity: 0;
        transform: translateY(-10px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* MOBILE */

@media (max-width: 768px) {

    .login-alert {
        padding: 16px;
    }

    .login-alert__box {
        width: 100%;
        max-width: 420px;

        padding: 16px;

        gap: 12px;

        border-radius: 14px;
    }

    .login-alert__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;

        font-size: 18px;
    }

    .login-alert__title {
        font-size: 14px;
    }

    .login-alert__message {
        font-size: 12px;
    }

    .login-alert__close {
        min-width: 54px;
        height: 34px;

        font-size: 11px;
    }

}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .login-page {
        padding: 30px 15px;
    }

    .login-card {
        padding: 28px 22px;

        border-radius: 18px;
    }

    .login-brand h1 {
        font-size: 22px;
    }

    .login-logo {
        width: 58px;
        height: 58px;

        border-radius: 16px;
    }

    .login-card-header h2 {
        font-size: 25px;
    }

}