/* ============================================================
   UPENDO ADMIN LOGIN
============================================================ */

:root {
    --purple: #6A1B9A;
    --purple-dark: #4A126B;
    --green: #2E7D32;
    --black: #111111;
    --white: #FFFFFF;
    --background: #F7F7F7;
    --border: #E2E2E2;
    --muted: #6B6B6B;
    --error: #B3261E;
}


/* ============================================================
   RESET
============================================================ */

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


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--black);
}


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

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

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

    padding: 40px 20px;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #F7F7F7 0%,
            #FFFFFF 50%,
            #F3EAF7 100%
        );
}


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

.login-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    opacity: 0.08;
}


.decoration-one {
    width: 420px;
    height: 420px;

    background: var(--purple);

    top: -220px;
    left: -180px;
}


.decoration-two {
    width: 360px;
    height: 360px;

    background: var(--green);

    bottom: -200px;
    right: -160px;
}


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

.login-card {
    width: 100%;
    max-width: 460px;

    background: var(--white);

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

    border-radius: 20px;

    padding: 42px 42px 30px;

    position: relative;
    z-index: 2;

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


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

.login-logo {
    display: flex;
    justify-content: center;

    margin-bottom: 12px;
}


.login-logo img {
    width: 92px;
    height: 92px;

    object-fit: contain;

    display: block;
}


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

.login-brand {
    text-align: center;

    margin-bottom: 30px;
}


.login-brand h1 {
    font-size: 30px;

    line-height: 1;

    font-weight: 800;

    color: var(--purple);

    letter-spacing: -0.5px;
}


.login-brand p {
    margin-top: 7px;

    font-size: 13px;

    font-weight: 600;

    color: var(--green);

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


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

.login-heading {
    text-align: center;

    margin-bottom: 28px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 9px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.6px;

    color: var(--green);
}


.login-heading h2 {
    font-size: 28px;

    line-height: 1.2;

    margin-bottom: 9px;

    color: var(--black);
}


.login-heading p {
    font-size: 14px;

    line-height: 1.6;

    color: var(--muted);
}


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

.login-form {
    width: 100%;
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 700;

    color: var(--black);
}


.form-group input {
    width: 100%;

    height: 50px;

    padding: 0 14px;

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

    border-radius: 10px;

    outline: none;

    background: #FFFFFF;

    color: var(--black);

    font-size: 15px;

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


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


.form-group input:focus {
    border-color: var(--purple);

    box-shadow:
        0 0 0 3px rgba(106, 27, 154, 0.10);
}


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

.password-wrapper {
    position: relative;
}


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


.toggle-password {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: var(--purple);

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    padding: 5px;
}


.toggle-password:hover {
    color: var(--purple-dark);
}


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

.login-error {
    min-height: 20px;

    margin-bottom: 8px;

    text-align: center;

    color: var(--error);

    font-size: 13px;

    font-weight: 600;
}


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

.login-button {
    width: 100%;

    height: 52px;

    border: none;

    border-radius: 10px;

    background: var(--purple);

    color: var(--white);

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

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


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

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(106, 27, 154, 0.20);
}


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


/* ============================================================
   BACK TO WEBSITE
============================================================ */

.back-to-website {
    display: block;

    margin-top: 24px;

    text-align: center;

    color: var(--purple);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;
}


.back-to-website:hover {
    text-decoration: underline;
}


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

.login-footer {
    display: flex;

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

    gap: 8px;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid #EEEEEE;

    color: #888888;

    font-size: 11px;
}


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

@media (max-width: 520px) {

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


    .login-card {
        padding: 32px 24px 25px;

        border-radius: 16px;
    }


    .login-logo img {
        width: 78px;
        height: 78px;
    }


    .login-brand h1 {
        font-size: 27px;
    }


    .login-heading h2 {
        font-size: 24px;
    }


    .login-heading p {
        font-size: 13px;
    }


    .login-footer {
        flex-wrap: wrap;
    }

}