/* =========================================================
   BELAIR HILL JUNIOR SCHOOL
   ADMIN PORTAL — INDEX PAGE
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap");


/* =========================================================
   ROOT
   ========================================================= */

:root {
    --green: #075b43;
    --green-dark: #043c2d;
    --green-deep: #022d21;
    --green-light: #edf6f1;

    --red: #9c2938;
    --red-dark: #731d29;
    --red-light: #f8eaec;

    --orange: #c66a32;
    --orange-dark: #9f4d22;
    --orange-light: #fff1e7;

    --gold: #c8a75d;
    --cream: #faf9f5;

    --white: #ffffff;

    --text: #17231f;
    --text-soft: #65726d;
    --muted: #8a9691;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   PAGE BACKGROUND
   ========================================================= */

.admin-entry-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    position: relative;

    background:
        radial-gradient(
            circle at 10% 12%,
            rgba(198, 106, 50, 0.24),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 88%,
            rgba(156, 41, 56, 0.25),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 0%,
            rgba(7, 91, 67, 0.30),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            var(--green-deep) 0%,
            var(--green-dark) 48%,
            var(--red-dark) 100%
        );
}


/* =========================================================
   BACKGROUND LIGHT EFFECTS
   ========================================================= */

.admin-entry-body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            125deg,
            transparent 15%,
            rgba(255, 255, 255, 0.045) 40%,
            transparent 60%
        );
}

.admin-entry-body::after {
    content: "";

    position: fixed;

    width: 420px;
    height: 420px;

    right: -180px;
    top: -180px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.035);

    filter: blur(5px);

    pointer-events: none;
}


/* =========================================================
   MAIN SHELL
   ========================================================= */

.admin-entry-shell {
    width: 100%;
    max-width: 700px;

    position: relative;
    z-index: 2;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.admin-entry-card {
    width: 100%;

    position: relative;

    padding: 48px 52px 34px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(250, 249, 245, 0.93)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.60);

    border-radius: 30px;

    box-shadow:
        0 35px 90px
        rgba(0, 0, 0, 0.26),

        inset 0 1px 0
        rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    overflow: hidden;
}


/* =========================================================
   TOP BRAND LINE
   ========================================================= */

.admin-entry-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 7%;
    right: 7%;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--green),
            var(--orange),
            var(--red)
        );

    border-radius:
        0 0 20px 20px;
}


/* =========================================================
   BRAND CONTAINER
   ========================================================= */

.entry-brand {
    width: min(100%, 330px);

    margin: 0 auto 28px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   BRAND LOGO
   ========================================================= */

.brand-logo {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 13px;
}

.brand-logo img {
    width: auto;

    max-width: 230px;
    max-height: 155px;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   BRAND INITIALS
   ========================================================= */

.brand-initials {
    width: 100%;

    color: var(--red);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 50px;

    font-weight: 800;

    line-height: 0.95;

    letter-spacing: 8px;

    text-align: center;

    white-space: nowrap;
}


/* =========================================================
   BRAND NAME
   ========================================================= */

.brand-name {
    width: 100%;

    margin-top: 9px;

    color: var(--green-dark);

    font-size: 14px;

    font-weight: 800;

    line-height: 1.35;

    text-align: center;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    padding: 7px 14px;

    color: var(--orange-dark);

    background:
        linear-gradient(
            135deg,
            var(--orange-light),
            #fff7f0
        );

    border:
        1px solid
        rgba(198, 106, 50, 0.16);

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


/* =========================================================
   HEADING
   ========================================================= */

.admin-entry-card h1 {
    margin-bottom: 17px;

    color: var(--green-dark);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: clamp(32px, 5vw, 46px);

    font-weight: 800;

    line-height: 1.15;
}

.admin-entry-card h1 span {
    color: var(--red);
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.admin-entry-card .lead {
    max-width: 570px;

    margin: 0 auto 24px;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.85;
}


/* =========================================================
   PORTAL PILL
   ========================================================= */

.portal-pill {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-bottom: 24px;

    padding: 9px 16px;

    color: var(--green-dark);

    background:
        rgba(237, 246, 241, 0.90);

    border:
        1px solid
        rgba(7, 91, 67, 0.12);

    border-radius: 999px;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.8);

    font-size: 12px;

    font-weight: 800;
}

.portal-pill span {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: var(--orange);

    box-shadow:
        0 0 0 5px
        rgba(198, 106, 50, 0.11);
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.primary-button {
    min-height: 52px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 13px 25px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--green-dark)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 14px;

    box-shadow:
        0 12px 28px
        rgba(4, 60, 45, 0.22);

    font-size: 14px;

    font-weight: 800;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.primary-button span {
    font-size: 18px;

    line-height: 1;

    transition:
        transform 0.22s ease;
}

.primary-button:hover {
    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--orange),
            var(--orange-dark)
        );

    box-shadow:
        0 15px 32px
        rgba(159, 77, 34, 0.25);

    transform: translateY(-2px);
}

.primary-button:hover span {
    transform: translateX(4px);
}

.primary-button:active {
    transform: translateY(0);
}


/* =========================================================
   FOOTER
   ========================================================= */

.entry-footer {
    margin-top: 28px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 500;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 700px) {

    .admin-entry-body {
        padding: 28px 16px;
    }

    .admin-entry-card {
        padding:
            40px
            30px
            30px;
    }

    .brand-logo img {
        max-height: 140px;
    }

    .brand-initials {
        font-size: 44px;
    }

    .admin-entry-card h1 {
        font-size: 36px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .admin-entry-body {
        padding: 18px 12px;
    }

    .admin-entry-card {
        padding:
            34px
            20px
            25px;

        border-radius: 23px;
    }

    .entry-brand {
        margin-bottom: 24px;
    }

    .brand-logo {
        margin-bottom: 11px;
    }

    .brand-logo img {
        max-width: 190px;
        max-height: 120px;
    }

    .brand-initials {
        font-size: 39px;
        letter-spacing: 6px;
    }

    .brand-name {
        font-size: 12px;
    }

    .eyebrow {
        font-size: 10px;
    }

    .admin-entry-card h1 {
        font-size: 30px;
    }

    .admin-entry-card .lead {
        font-size: 13px;
        line-height: 1.75;
    }

    .primary-button {
        width: 100%;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.primary-button:focus-visible {
    outline:
        3px solid
        rgba(198, 106, 50, 0.35);

    outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}