
/* BETTI OFFICIAL LANDING PAGE */

:root {
    --betti-green: #008d49;
    --betti-blue: #0752a7;
    --betti-gold: #efb72a;
    --betti-navy: #092f66;
}

/* Main desktop composition */
body {
    background: #eaf3fa !important;
    overflow-x: hidden;
}

body > div:first-of-type {
    position: relative !important;
    display: block !important;
    min-height: 100svh !important;
    background:
        #eaf3fa
        url('/assets/images/betti-bus.png')
        center center / contain no-repeat !important;
    overflow: hidden;
}

/* Hide the old promotional panel, not the login form */
body > div:first-of-type > section:first-child {
    display: none !important;
}

/* Left white curved panel */
body > div:first-of-type > main.betti-login-main {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 35% !important;
    max-width: 490px !important;
    min-height: 100svh !important;
    padding: 24px 32px 115px !important;
    background: rgba(255,255,255,.97) !important;
    border-radius: 0 110px 110px 0 !important;
}

/* Existing form wrapper */
.betti-login-main > div {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
}

/* Official school branding */
.betti-official-brand {
    text-align: center;
    margin: 0 auto 15px;
}

.betti-official-brand img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 7px;
}

.betti-official-brand h1 {
    font-size: 19px;
    line-height: 1.14;
    font-weight: 900;
    color: var(--betti-navy);
    letter-spacing: -.02em;
}

.betti-official-brand p {
    font-size: 11px;
    margin-top: 4px;
    color: #475569;
}

/* Remove old floating login card */
.betti-login-main > div > div.rounded-\[2rem\] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Remove old lock graphic */
.betti-login-main .text-center > div:first-child {
    display: none !important;
}

.betti-login-main h2 {
    margin-top: 10px !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    color: var(--betti-navy) !important;
}

.betti-login-main .text-center p {
    margin-top: 5px !important;
    font-size: 12px !important;
}

.betti-login-main form {
    margin-top: 15px !important;
}

.betti-login-main form input:not([type="hidden"]) {
    min-height: 40px;
}

.betti-login-main button[type="submit"] {
    background: linear-gradient(
        90deg, #08a651, #008846
    ) !important;
    min-height: 43px;
    padding: 9px 14px !important;
}

/* Keep controls compact */
.betti-login-main form.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 13px;
}

.betti-login-main a {
    overflow-wrap: anywhere;
}

/* Caption over bus */
.betti-bus-caption {
    position: absolute;
    z-index: 4;
    right: 4%;
    bottom: 108px;
    display: flex;
    flex-direction: column;
    text-align: right;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
    pointer-events: none;
}

.betti-bus-caption strong {
    font-size: clamp(17px, 1.7vw, 26px);
    font-weight: 900;
}

.betti-bus-caption span {
    font-size: 13px;
}

/* Decorative school-colour waves */
.betti-bottom-waves {
    position: absolute;
    z-index: 4;
    bottom: 52px;
    left: 0;
    width: 100%;
    height: 110px;
    pointer-events: none;
}

.betti-bottom-waves svg {
    width: 100%;
    height: 100%;
}

/* Green quick-access navigation */
.betti-bottom-nav {
    position: absolute;
    z-index: 6;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 55px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: linear-gradient(
        90deg, #007b3d, #00a34f, #007b3d
    );
    box-shadow: 0 -4px 18px rgba(0,60,30,.15);
}

.betti-bottom-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.betti-bottom-nav i {
    font-size: 16px;
}

.betti-bottom-nav a:hover,
.betti-bottom-nav a:focus-visible {
    color: #ffdc69;
}

/* Medium screens */
@media (max-width: 1100px) {
    body > div:first-of-type > main.betti-login-main {
        width: 43% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .betti-bus-caption {
        right: 3%;
    }
}

/* Phones and small tablets */
@media (max-width: 767px) {
    body > div:first-of-type {
        display: flex !important;
        flex-direction: column !important;
        background-image: none !important;
        background-color: #eef6fc !important;
        overflow: visible !important;
    }

    body > div:first-of-type::before {
        content: "";
        display: block;
        height: clamp(150px, 43vw, 245px);
        width: 100%;
        background:
            url('/assets/images/betti-bus.png')
            center / contain no-repeat;
        background-color: #dceefb;
        order: 0;
    }

    body > div:first-of-type > main.betti-login-main {
        order: 1;
        width: 100% !important;
        max-width: none !important;
        min-height: auto !important;
        border-radius: 25px 25px 0 0 !important;
        padding: 24px 20px 32px !important;
        margin-top: -12px;
        background: #fff !important;
    }

    .betti-login-main > div {
        max-width: 430px !important;
    }

    .betti-official-brand img {
        width: 65px;
        height: 65px;
    }

    .betti-bottom-waves,
    .betti-bus-caption {
        display: none;
    }

    .betti-bottom-nav {
        order: 2;
        position: relative;
        flex-wrap: wrap;
        gap: 8px 15px;
        padding: 15px 12px;
    }

    .betti-bottom-nav a {
        font-size: 11px;
        white-space: normal;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    body > div:first-of-type > main.betti-login-main {
        padding: 20px 14px 28px !important;
    }

    .betti-official-brand h1 {
        font-size: 17px;
    }

    .betti-bottom-nav {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .betti-login-main *,
    .betti-bottom-nav * {
        transition: none !important;
    }
}
