/* =========================================================
   SUPREA CMS
   LOGIN PAGE
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.sp-login-page {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #071a2f;

    font-family: 'Inter', sans-serif;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.sp-login-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.sp-login-background-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    /* More contrast / less fog */
    filter:
        brightness(0.72)
        contrast(1.18)
        saturate(1.08);

    transform: scale(1.02);
}


/* Dark cinematic overlay */

.sp-login-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2, 12, 24, 0.78) 0%,
            rgba(3, 20, 37, 0.52) 45%,
            rgba(2, 12, 24, 0.68) 100%
        );
}


/* Subtle blue enterprise tint */

.sp-login-gradient {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(34, 111, 168, 0.10) 0%,
            transparent 55%
        );
}


/* =========================================================
   CONTENT
   ========================================================= */

.sp-login-content {
    position: relative;

    z-index: 2;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px 20px;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.sp-login-card {
    width: 100%;
    max-width: 440px;

    padding: 40px 42px 30px;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.8);

    border-radius: 16px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);
}



/* =========================================================
   BRAND
   ========================================================= */

.sp-login-brand {
    text-align: center;
}


.sp-login-logo {
    width: 86px;
    height: 86px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(7, 26, 47, 0.12);
}

.sp-login-logo img {
    width: 100%;
    height: 100%;

    padding: 5px;

    object-fit: contain;
}


/* COMPANY NAME */

.sp-login-company {
    margin: 0;

    color: #071a2f;

    font-size: 0.92rem;
    font-weight: 800;

    line-height: 1.25;

    letter-spacing: 0.7px;

    white-space: nowrap;
}


/* SYSTEM NAME */

.sp-login-system {
    margin: 5px 0 0;

    color: #256da8;

    font-size: 0.74rem;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.45px;

    text-transform: uppercase;
}


/* =========================================================
   HEADING
   ========================================================= */

.sp-login-heading {
    margin-top: 32px;
    text-align: center;
}

.sp-login-heading h1 {
    margin: 0;

    color: #071a2f;

    font-size: 1.65rem;
    font-weight: 750;

    letter-spacing: -0.5px;
}

.sp-login-heading p {
    margin: 8px 0 0;

    color: #64748b;

    font-size: 0.8rem;
    font-weight: 450;
}


/* =========================================================
   ERROR
   ========================================================= */

.sp-login-error {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 22px;

    padding: 11px 12px;

    color: #991b1b;

    background: #fff5f5;

    border: 1px solid #fecaca;

    border-radius: 9px;

    font-size: 0.72rem;
}


.sp-login-error strong {
    display: block;

    margin-bottom: 2px;

    font-weight: 700;
}


.sp-login-error-icon {
    flex-shrink: 0;

    color: #dc2626;

    font-size: 0.85rem;
}


/* =========================================================
   FORM
   ========================================================= */

.sp-login-form {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-top: 26px;
}


/* =========================================================
   FIELD
   ========================================================= */

.sp-login-field {
    width: 100%;
}


.sp-login-field label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 0.73rem;
    font-weight: 650;
}


/* =========================================================
   LABEL ROW
   ========================================================= */

.sp-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 7px;
}


.sp-login-label-row label {
    margin-bottom: 0;
}


.sp-login-label-row a {
    color: #1769aa;

    font-size: 0.7rem;

    font-weight: 750;

    letter-spacing: -0.05px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}


.sp-login-label-row a:hover {
    color: #0b4f82;

    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =========================================================
   INPUT
   ========================================================= */

.sp-login-input {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 46px;

    background: #f8fbff;

    /* Slight blue default state */
    border: 1px solid #b9d3e8;

    border-radius: 9px;

    box-shadow:
        0 1px 3px rgba(37, 109, 168, 0.04);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Slightly stronger when hovering */

.sp-login-input:hover {
    background: #f5f9fd;

    border-color: #8fb9d8;
}


/* Focus */

.sp-login-input:focus-within {
    background: #ffffff;

    border-color: #2f80ed;

    box-shadow:
        0 0 0 3px rgba(47, 128, 237, 0.11);
}


.sp-login-input > i {
    width: 42px;

    flex-shrink: 0;

    text-align: center;

    color: #4d8bb8;

    font-size: 0.82rem;

    transition: color 0.2s ease;
}


/* Make icon stronger when field is active */

.sp-login-input:focus-within > i {
    color: #256da8;
}


.sp-login-input input {
    width: 100%;
    height: 100%;

    padding: 0 12px 0 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #17212b;

    font-family: 'Inter', sans-serif;

    font-size: 0.78rem;
}


.sp-login-input input::placeholder {
    color: #8ca1b2;
}


/* Autofill */

.sp-login-input input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f8fbff inset;
    -webkit-text-fill-color: #17212b;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.sp-password-toggle {
    width: 42px;
    height: 100%;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: transparent;

    color: #94a3b8;

    cursor: pointer;

    transition: color 0.2s ease;
}


.sp-password-toggle:hover {
    color: #256da8;
}


.sp-password-toggle:focus-visible {
    outline: 2px solid #60a5fa;

    outline-offset: -3px;

    border-radius: 6px;
}


/* =========================================================
   SIGN IN BUTTON
   ========================================================= */

.sp-login-submit {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 3px;

    border: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #0b2948 0%,
            #145681 100%
        );

    color: #ffffff;

    font-family: 'Inter', sans-serif;

    font-size: 0.78rem;
    font-weight: 650;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(11, 41, 72, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.sp-login-submit:hover {
    filter: brightness(1.08);

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(11, 41, 72, 0.25);
}


.sp-login-submit:active {
    transform: translateY(0);

    box-shadow:
        0 4px 10px rgba(11, 41, 72, 0.18);
}


.sp-login-submit i {
    font-size: 0.7rem;

    transition: transform 0.2s ease;
}


.sp-login-submit:hover i {
    transform: translateX(3px);
}


/* =========================================================
   SUPPORT
   ========================================================= */

.sp-login-support {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 25px;
    padding-top: 18px;

    border-top: 1px solid #e5eaf0;

    color: #64748b;

    font-size: 0.7rem;

    text-align: center;
}


.sp-login-support > i {
    color: #256da8;

    font-size: 0.78rem;
}


.sp-login-support strong {
    margin-left: 3px;

    color: #1769aa;

    font-size: 0.72rem;
    font-weight: 800;

    /* text-decoration: underline;
    text-decoration-color: rgba(23, 105, 170, 0.25);
    text-underline-offset: 3px; */

    cursor: pointer;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

/* 
.sp-login-support strong:hover {
    color: #0b4f82;

    text-decoration-color: #0b4f82;
} */


/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.sp-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    color: #a3aab3;

    font-size: 0.6rem;
    font-weight: 500;

    letter-spacing: 0.15px;
}


.sp-login-footer-dot {
    color: #c8cdd3;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 575.98px) {

    .sp-login-content {
        padding: 20px 14px;
    }


    .sp-login-card {
        max-width: 100%;

        padding: 30px 24px 24px;

        border-radius: 15px;
    }


    .sp-login-logo {
        width: 68px;
        height: 68px;
    }


    .sp-login-company {
        font-size: 0.72rem;
    }


    .sp-login-system {
        font-size: 0.61rem;
    }


    .sp-login-heading {
        margin-top: 25px;
    }


    .sp-login-heading h1 {
        font-size: 1.4rem;
    }

}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-height: 700px) {

    .sp-login-content {
        padding-top: 15px;
        padding-bottom: 15px;
    }


    .sp-login-card {
        padding-top: 24px;
        padding-bottom: 20px;
    }


    .sp-login-heading {
        margin-top: 18px;
    }


    .sp-login-form {
        margin-top: 18px;

        gap: 14px;
    }


    .sp-login-support {
        margin-top: 18px;
        padding-top: 15px;
    }


    .sp-login-footer {
        margin-top: 12px;
    }

}
