:root {
    --teal: #176b68;
    --teal-dark: #0d4846;
    --teal-deep: #083c3a;

    --white: #ffffff;
    --off-white: #f7f9f8;
    --soft: #eef4f3;

    --text: #172221;
    --muted: #71807e;

    --border: #dfe8e6;

    --danger: #b54b4b;
    --success: #28775e;

    --radius: 18px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    width: 100%;
    min-height: 100%;
}
body {
    font-family: "DM Sans", sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
}
/* =========================================
   PAGE
========================================= */
.admin-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 46% 54%;
}
/* =========================================
   BRAND PANEL
========================================= */
.brand-panel {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(
            145deg,
            var(--teal-dark) 0%,
            var(--teal) 48%,
            #217b77 100%
        );
    color: white;
    padding: 42px 52px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* Decorative architectural lines */
.brand-panel::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    right: -280px;
    top: -180px;
}
.brand-panel::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    left: -250px;
    bottom: -230px;
}
/* =========================================
   BRAND TOP
========================================= */
.brand-top {
    display: flex;
    align-items: center;
    gap: 14px;

    position: relative;
    z-index: 2;
}


.brand-mark {
    width: 44px;
    height: 44px;

    border: 1px solid rgba(255,255,255,0.45);

    display: grid;
    place-items: center;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;
}


.brand-name {
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;
}


/* =========================================
   BRAND CONTENT
========================================= */

.brand-content {
    margin-top: auto;
    margin-bottom: auto;

    max-width: 470px;

    position: relative;
    z-index: 2;
}


.eyebrow {
    display: inline-block;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;

    opacity: 0.72;

    margin-bottom: 24px;
}


.brand-content h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(58px, 6vw, 92px);

    line-height: 0.94;

    font-weight: 500;

    letter-spacing: -3px;

    margin-bottom: 30px;
}


.brand-content h1 em {
    font-weight: 500;
    opacity: 0.72;
}


.brand-content p {
    max-width: 390px;

    font-size: 15px;

    line-height: 1.8;

    color: rgba(255,255,255,0.76);
}


/* =========================================
   BRAND FOOTER
========================================= */

.brand-footer {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 11px;

    color: rgba(255,255,255,0.62);
}


.secure-label {
    display: flex;
    align-items: center;
    gap: 8px;
}


.secure-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #8fd3b2;

    box-shadow: 0 0 0 4px rgba(143,211,178,0.12);
}




/* =========================================
   LOGIN PANEL
========================================= */

.login-panel {
    min-height: 100vh;

    background: var(--off-white);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;
}


.login-container {
    width: 100%;
    max-width: 470px;
}


/* =========================================
   MOBILE BRAND
========================================= */

.mobile-brand {
    display: none;
}


/* =========================================
   LOGIN HEADING
========================================= */

.small-label {
    display: block;

    color: var(--teal);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2.5px;

    margin-bottom: 14px;
}


.login-heading h2 {
    font-family: "Playfair Display", serif;

    font-size: 46px;

    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -1.5px;

    margin-bottom: 15px;
}


.login-heading p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;

    max-width: 390px;
}


/* =========================================
   FORM
========================================= */

.login-form {
    margin-top: 38px;
}


.form-group {
    margin-bottom: 22px;
}


.form-group label {
    display: block;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 9px;

    color: #394644;
}


.password-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.password-heading label {
    margin-bottom: 9px;
}


.forgot-password {
    border: 0;
    background: transparent;

    color: var(--teal);

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    margin-bottom: 9px;
}


.forgot-password:hover {
    text-decoration: underline;
}


/* =========================================
   INPUTS
========================================= */

.input-wrapper {
    height: 58px;

    position: relative;

    display: flex;
    align-items: center;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-wrapper:focus-within {
    border-color: var(--teal);

    box-shadow:
        0 0 0 3px rgba(23,107,104,0.08);
}


.input-icon {
    width: 48px;

    display: grid;
    place-items: center;

    color: #8b9997;

    font-size: 15px;

    font-weight: 700;
}


.input-wrapper input {
    flex: 1;

    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    font-family: inherit;

    font-size: 14px;

    color: var(--text);

    padding-right: 15px;
}


.input-wrapper input::placeholder {
    color: #a5afad;
}


.password-toggle {
    margin-right: 14px;

    border: 0;

    background: transparent;

    color: var(--teal);

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================
   MESSAGE
========================================= */

.login-message {
    min-height: 0;

    font-size: 12px;

    line-height: 1.5;

    margin-bottom: 0;

    transition: all 0.2s ease;
}


.login-message.error {
    color: var(--danger);

    background: #fff4f4;

    border: 1px solid #f0d8d8;

    padding: 11px 13px;

    border-radius: 8px;

    margin-bottom: 15px;
}


.login-message.success {
    color: var(--success);

    background: #f0f8f4;

    border: 1px solid #d6eade;

    padding: 11px 13px;

    border-radius: 8px;

    margin-bottom: 15px;
}


/* =========================================
   LOGIN BUTTON
========================================= */

.login-button {
    width: 100%;

    height: 58px;

    border: 0;

    border-radius: 10px;

    background: var(--teal);

    color: white;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.2px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    position: relative;

    overflow: hidden;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.login-button:hover {
    background: var(--teal-dark);

    transform: translateY(-1px);
}


.login-button:active {
    transform: translateY(0);
}


.button-arrow {
    font-size: 20px;

    font-weight: 400;

    transition: transform 0.2s ease;
}


.login-button:hover .button-arrow {
    transform: translateX(4px);
}


.button-loader {
    display: none;

    width: 17px;
    height: 17px;

    border: 2px solid rgba(255,255,255,0.35);

    border-top-color: white;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}


.login-button.loading .button-text,
.login-button.loading .button-arrow {
    display: none;
}


.login-button.loading .button-loader {
    display: block;
}


.login-button.loading {
    pointer-events: none;

    opacity: 0.82;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================
   SECURITY
========================================= */

.login-security {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 25px;

    color: #879390;

    font-size: 10px;
}


.security-icon {
    width: 17px;
    height: 17px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #dcece7;

    color: var(--teal);

    font-size: 9px;

    font-weight: 800;
}


/* =========================================
   PAGE LOADER
========================================= */

.page-loader {
    position: fixed;

    inset: 0;

    background: var(--teal-deep);

    color: white;

    z-index: 1000;

    display: none;

    place-items: center;
}


.page-loader.show {
    display: grid;
}


.loader-inner {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 18px;

    animation: loaderEnter 0.4s ease;
}


.loader-mark {
    width: 56px;
    height: 56px;

    border: 1px solid rgba(255,255,255,0.4);

    display: grid;
    place-items: center;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;
}


.loader-inner span {
    font-size: 11px;

    letter-spacing: 1px;

    opacity: 0.7;
}


@keyframes loaderEnter {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .admin-page {
        grid-template-columns: 1fr;
    }


    .brand-panel {
        display: none;
    }


    .login-panel {
        min-height: 100vh;

        padding: 35px 24px;
    }


    .mobile-brand {
        display: flex;

        align-items: center;

        gap: 12px;

        margin-bottom: 65px;
    }


    .mobile-brand .brand-mark {
        border-color: var(--teal);
        color: var(--teal);
    }


    .mobile-brand span {
        color: var(--text);

        font-size: 12px;

        font-weight: 700;

        letter-spacing: 2.5px;
    }


    .login-heading h2 {
        font-size: 40px;
    }

}


@media (max-width: 480px) {

    .login-panel {
        padding: 25px 20px;
    }


    .mobile-brand {
        margin-bottom: 50px;
    }


    .login-heading h2 {
        font-size: 35px;
    }


    .login-form {
        margin-top: 30px;
    }

}

/* =========================================
   AUNTIE EJAY — ADMIN BRAND
   ========================================= */

.brand-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-mark {
    width: 72px;
    height: 72px;

    border: 1px solid rgba(255, 255, 255, 0.28);

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    letter-spacing: 1px;

    color: #ffffff;

    flex-shrink: 0;
}

.brand-mark span:first-child {
    margin-right: 1px;
}

.brand-mark span:last-child {
    margin-left: 1px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    gap: 4px;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;

    letter-spacing: 0.38em;
    line-height: 1.1;
}

.brand-name span:last-child {
    margin-left: 0;
}
