/* =========================================================
   BELAIR HILL JUNIOR SCHOOL
   ADMIN LOGIN
   login.css
   ========================================================= */

@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;
    --gold-light: #ead8a5;

    --cream: #faf9f5;
    --white: #ffffff;

    --text: #17231f;
    --text-soft: #66736e;
    --muted: #8a9691;

    --border:
        rgba(7, 91, 67, 0.13);
}


/* =========================================================
   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;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   LOGIN BODY
   ========================================================= */

.login-body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(198, 106, 50, 0.28),
            transparent 30%
        ),

        radial-gradient(
            circle at 92% 90%,
            rgba(156, 41, 56, 0.28),
            transparent 32%
        ),

        radial-gradient(
            circle at 50% -10%,
            rgba(7, 91, 67, 0.35),
            transparent 42%
        ),

        linear-gradient(
            135deg,
            var(--green-deep) 0%,
            var(--green-dark) 48%,
            var(--red-dark) 100%
        );
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {

    min-height: 100vh;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 45px 20px;

    position: relative;

    isolation: isolate;

    overflow: hidden;
}


/* =========================================================
   DECORATIVE BACKGROUND
   ========================================================= */

.login-page::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            125deg,
            transparent 20%,
            rgba(255, 255, 255, 0.045) 46%,
            transparent 68%
        );

    pointer-events: none;

    z-index: -2;
}


.login-page::after {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -270px;
    bottom: -280px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.035);

    pointer-events: none;

    z-index: -2;
}


/* =========================================================
   BACKGROUND SHAPES
   ========================================================= */

.login-background-shape {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    z-index: -1;

    filter: blur(1px);
}


.shape-one {

    width: 280px;
    height: 280px;

    top: -130px;
    left: -110px;

    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid
        rgba(255, 255, 255, 0.06);
}


.shape-two {

    width: 350px;
    height: 350px;

    right: -180px;
    top: 22%;

    background:
        rgba(198, 106, 50, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.05);
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {

    width: 100%;

    max-width: 480px;

    position: relative;

    padding: 42px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(250, 249, 245, 0.95)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.65);

    border-radius: 28px;

    box-shadow:

        0 35px 90px
        rgba(0, 0, 0, 0.30),

        0 8px 25px
        rgba(0, 0, 0, 0.08),

        inset 0 1px 0
        rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(24px);

    -webkit-backdrop-filter: blur(24px);

    overflow: hidden;
}


/* =========================================================
   TOP ACCENT
   ========================================================= */

.login-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 8%;
    right: 8%;

    height: 4px;

    border-radius:
        0 0 15px 15px;

    background:
        linear-gradient(
            90deg,
            var(--green),
            var(--orange),
            var(--red)
        );
}


/* =========================================================
   BRANDING
   ========================================================= */

.login-brand {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    margin-bottom: 30px;
}


/* =========================================================
   LOGO PLACEHOLDER
   ========================================================= */

.login-brand .brand-logo {

    width: 100%;

    min-height: 125px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 10px;
}


.login-brand .brand-logo img {

    width: auto;

    max-width: 220px;

    max-height: 130px;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   INITIALS PLACEHOLDER
   ========================================================= */

.login-brand .brand-initials {

    width: 100%;

    color: var(--red);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 44px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: 7px;

    text-align: center;
}


/* =========================================================
   SCHOOL NAME PLACEHOLDER
   ========================================================= */

.login-brand .brand-name {

    width: 100%;

    margin-top: 8px;

    color: var(--green-dark);

    font-size: 13px;

    font-weight: 800;

    line-height: 1.4;

    text-align: center;
}


/* =========================================================
   LOGIN HEADING
   ========================================================= */

.login-heading {

    text-align: center;

    margin-bottom: 25px;
}


.login-heading .eyebrow {

    margin-bottom: 7px;

    color: var(--orange-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


.login-heading h1 {

    margin-bottom: 9px;

    color: var(--green-dark);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 31px;

    font-weight: 800;

    line-height: 1.2;
}


.login-heading > p:last-child {

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.65;
}


.login-heading [data-brand-name] {

    color: var(--green-dark);

    font-weight: 700;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.login-message {

    width: 100%;

    margin-bottom: 18px;

    padding: 12px 14px;

    border-radius: 11px;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.5;
}


.login-message.error {

    color: var(--red-dark);

    background:
        var(--red-light);

    border:
        1px solid
        rgba(156, 41, 56, 0.15);
}


/* =========================================================
   FORM
   ========================================================= */

.login-form {

    width: 100%;
}


.form-group {

    margin-bottom: 19px;
}


/* =========================================================
   LABEL
   ========================================================= */

.form-group label {

    display: block;

    margin-bottom: 7px;

    color: var(--green-dark);

    font-size: 12px;

    font-weight: 800;
}


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.input-wrapper {

    position: relative;

    width: 100%;
}


/* =========================================================
   INPUT ICON
   ========================================================= */

.input-icon {

    position: absolute;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    color: var(--muted);

    font-size: 14px;

    font-weight: 700;

    pointer-events: none;

    z-index: 2;
}


/* =========================================================
   INPUT
   ========================================================= */

.input-wrapper input {

    width: 100%;

    min-height: 49px;

    padding:
        12px
        14px
        12px
        43px;

    color: var(--text);

    background:
        rgba(255, 255, 255, 0.94);

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    outline: none;

    box-shadow:
        inset 0 1px 2px
        rgba(2, 45, 33, 0.025);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.input-wrapper input::placeholder {

    color: #a1aaa6;
}


.input-wrapper input:hover {

    border-color:
        rgba(7, 91, 67, 0.25);
}


.input-wrapper input:focus {

    background:
        var(--white);

    border-color:
        var(--orange);

    box-shadow:
        0 0 0 4px
        rgba(198, 106, 50, 0.10);
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.login-submit {

    width: 100%;

    min-height: 51px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 5px;

    padding: 12px 18px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--green-dark)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 13px;

    box-shadow:
        0 12px 28px
        rgba(4, 60, 45, 0.20);

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.login-submit:hover {

    background:
        linear-gradient(
            135deg,
            var(--orange),
            var(--orange-dark)
        );

    box-shadow:
        0 14px 30px
        rgba(159, 77, 34, 0.25);

    transform:
        translateY(-2px);
}


.login-submit:active {

    transform:
        translateY(0);
}


.login-submit:disabled {

    opacity: 0.68;

    cursor: not-allowed;

    transform: none;

    box-shadow:
        0 8px 20px
        rgba(4, 60, 45, 0.12);
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 9px;

    margin-top: 25px;

    padding-top: 19px;

    border-top:
        1px solid
        rgba(7, 91, 67, 0.09);

    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;

    text-align: center;
}


.login-footer a {

    color: var(--green);

    font-size: 11px;

    font-weight: 800;

    transition:
        color 0.2s ease;
}


.login-footer a:hover {

    color:
        var(--orange-dark);
}


.login-footer [data-brand-name] {

    font-weight: 600;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
input:focus-visible,
a:focus-visible {

    outline:
        3px solid
        rgba(198, 106, 50, 0.30);

    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 600px) {

    .login-page {

        padding:
            30px 16px;
    }


    .login-card {

        padding:
            38px 28px 28px;

        border-radius: 24px;
    }


    .login-brand .brand-logo {

        min-height: 110px;
    }


    .login-brand .brand-logo img {

        max-width: 195px;

        max-height: 115px;
    }


    .login-brand .brand-initials {

        font-size: 40px;

        letter-spacing: 6px;
    }


    .login-heading h1 {

        font-size: 28px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .login-page {

        padding:
            18px 10px;
    }


    .login-card {

        padding:
            32px 20px 24px;

        border-radius: 21px;
    }


    .login-brand {

        margin-bottom: 25px;
    }


    .login-brand .brand-logo {

        min-height: 95px;
    }


    .login-brand .brand-logo img {

        max-width: 175px;

        max-height: 100px;
    }


    .login-brand .brand-initials {

        font-size: 36px;

        letter-spacing: 5px;
    }


    .login-brand .brand-name {

        font-size: 12px;
    }


    .login-heading h1 {

        font-size: 25px;
    }


    .login-heading > p:last-child {

        font-size: 12px;
    }


    .shape-one {

        width: 210px;

        height: 210px;
    }


    .shape-two {

        width: 240px;

        height: 240px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 340px) {

    .login-card {

        padding:
            28px 16px 22px;
    }


    .login-brand .brand-initials {

        font-size: 32px;

        letter-spacing: 4px;
    }


    .login-heading h1 {

        font-size: 23px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation: none !important;

        transition: none !important;
    }

}