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

body.school-login-body {
    background:
        radial-gradient(circle at 17% 18%, rgba(var(--amaano-primary-rgb), .16), transparent 34%),
        radial-gradient(circle at 82% 70%, rgba(var(--amaano-primary-rgb), .08), transparent 30%),
        linear-gradient(135deg, #eef5ff 0%, #f7fafc 46%, #eef7f2 100%);
    color: var(--amaano-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.school-login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(16px, 3vh, 32px) clamp(16px, 3vw, 40px);
    position: relative;
}

.school-login-shell::before,
.school-login-shell::after {
    border-radius: 999px;
    content: "";
    filter: blur(3px);
    opacity: .65;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

.school-login-shell::before {
    background: rgba(var(--amaano-primary-rgb), .13);
    height: 360px;
    left: max(-130px, -8vw);
    top: max(-130px, -8vw);
    width: 360px;
}

.school-login-shell::after {
    background: rgba(var(--amaano-primary-rgb), .08);
    bottom: max(-160px, -10vw);
    height: 420px;
    right: max(-160px, -10vw);
    width: 420px;
}

.school-login-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(var(--amaano-primary-rgb), .11);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(30, 53, 74, .13);
    max-width: 460px;
    overflow: hidden;
    padding: clamp(24px, 3vh, 36px) clamp(24px, 3vw, 36px);
    position: relative;
    width: min(100%, 460px);
    z-index: 1;
}

.school-login-card::before {
    background: linear-gradient(
        145deg,
        rgba(var(--amaano-primary-rgb), .12),
        rgba(255, 255, 255, 0)
    );
    border-radius: 0 0 0 115px;
    content: "";
    height: 142px;
    position: absolute;
    right: -34px;
    top: -36px;
    width: 150px;
}

.school-login-card::after {
    border: 1px solid rgba(var(--amaano-primary-rgb), .12);
    border-radius: 50%;
    content: "";
    height: 160px;
    left: -92px;
    position: absolute;
    top: 120px;
    width: 160px;
}

.school-login-orb {
    border-radius: 999px;
    pointer-events: none;
    position: absolute;
}

.school-login-orb-top {
    background: rgba(var(--amaano-primary-rgb), .08);
    height: 96px;
    right: 24px;
    top: 24px;
    width: 96px;
}

.school-login-orb-bottom {
    background: rgba(var(--amaano-accent-rgb), .10);
    bottom: -42px;
    height: 130px;
    left: -46px;
    width: 130px;
}

.school-login-language,
.school-login-logo-wrap,
.school-login-heading,
.school-login-alert,
.school-login-form,
.school-login-forgot,
.school-login-copyright {
    position: relative;
    z-index: 1;
}

.school-login-language {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.school-login-language label {
    align-items: center;
    color: var(--amaano-muted);
    display: inline-flex;
    font-size: .76rem;
    font-weight: 850;
    gap: 6px;
    margin: 0;
}

.school-login-language .form-select {
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    color: #14213d;
    font-size: .78rem;
    font-weight: 850;
    min-height: 36px;
    min-width: 118px;
}

.school-login-logo-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe6ef;
    border-radius: 21px;
    box-shadow: 0 14px 34px rgba(30, 53, 74, .10);
    display: flex;
    height: 78px;
    justify-content: center;
    margin: 2px auto 16px;
    padding: 9px;
    width: 78px;
}

.school-login-logo {
    border-radius: 14px;
    height: 60px;
    object-fit: contain;
    width: 60px;
}

.school-login-logo-fallback {
    align-items: center;
    background: var(--amaano-primary-soft);
    border-radius: 15px;
    color: var(--amaano-primary-dark);
    display: flex;
    font-size: 2rem;
    font-weight: 950;
    height: 60px;
    justify-content: center;
    width: 60px;
}

.school-login-heading {
    text-align: center;
}

.school-login-school-name {
    color: var(--amaano-primary-dark);
    font-size: .9rem;
    font-weight: 950;
    letter-spacing: .24em;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 360px;
    text-transform: uppercase;
}

.school-login-school-subtitle {
    color: var(--amaano-primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .11em;
    margin-top: 2px;
    text-transform: uppercase;
}

.school-login-secure-copy {
    color: var(--amaano-muted);
    font-size: .86rem;
    margin: 12px 0 9px;
}

.school-login-heading h1 {
    color: #17233f;
    font-size: clamp(1.75rem, 3vw, 2.1rem);
    font-weight: 950;
    letter-spacing: -.05em;
    line-height: 1.05;
    margin: 0 0 7px;
}

.school-login-heading > p:not(.school-login-secure-copy) {
    color: var(--amaano-muted);
    font-size: .86rem;
    margin-bottom: 17px;
}

.school-login-alert {
    align-items: flex-start;
    border-radius: 14px;
    display: flex;
    font-size: .82rem;
    gap: 9px;
    margin-bottom: 14px;
    padding: .72rem .85rem;
}

.school-login-form .mb-3 {
    margin-bottom: 13px !important;
}

.school-login-card .form-label {
    color: #17233f;
    font-size: .8rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.school-login-field {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe6ef;
    border-radius: 16px;
    display: flex;
    min-height: 52px;
    overflow: hidden;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.school-login-field:focus-within {
    border-color: rgba(var(--amaano-primary-rgb), .72);
    box-shadow: 0 0 0 .22rem rgba(var(--amaano-primary-rgb), .10);
}

.school-login-field > i {
    color: #17233f;
    flex: 0 0 44px;
    font-size: 1rem;
    opacity: .72;
    text-align: center;
}

.school-login-card .form-control {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: .9rem;
    min-height: 50px;
    padding: .66rem .9rem .66rem 0;
}

.school-login-card .form-control:focus {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.school-login-password-field .form-control {
    padding-right: .4rem;
}

.school-login-password-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    color: var(--amaano-muted);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-right: 7px;
    transition:
        color .16s ease,
        border-color .16s ease,
        background .16s ease;
    width: 40px;
}

.school-login-password-toggle:hover,
.school-login-password-toggle:focus {
    background: var(--amaano-primary-soft);
    border-color: rgba(var(--amaano-primary-rgb), .35);
    color: var(--amaano-primary-dark);
}

.school-login-submit {
    background: linear-gradient(
        135deg,
        var(--amaano-primary-dark),
        var(--amaano-primary)
    );
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(var(--amaano-primary-rgb), .22);
    color: #fff;
    font-size: .92rem;
    font-weight: 950;
    min-height: 50px;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}

.school-login-submit:hover,
.school-login-submit:focus {
    color: #fff;
    filter: brightness(.98);
    box-shadow: 0 18px 34px rgba(var(--amaano-primary-rgb), .28);
    transform: translateY(-1px);
}

.school-login-forgot {
    color: var(--amaano-primary-dark);
    display: block;
    font-size: .84rem;
    font-weight: 900;
    margin-top: 13px;
    text-align: center;
    text-decoration: none;
}

.school-login-forgot:hover,
.school-login-forgot:focus {
    color: var(--amaano-primary);
    text-decoration: underline;
}

.school-login-copyright {
    color: var(--amaano-primary-dark);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.4;
    margin-top: 16px;
    text-align: center;
}


/* Standard laptop screens */
@media (max-height: 820px) and (min-width: 576px) {
    .school-login-shell {
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .school-login-card {
        border-radius: 24px;
        max-width: 440px;
        padding: 19px 28px 20px;
        width: min(100%, 440px);
    }

    .school-login-language {
        margin-bottom: 7px;
    }

    .school-login-language .form-select {
        min-height: 34px;
    }

    .school-login-logo-wrap {
        border-radius: 18px;
        height: 66px;
        margin-bottom: 10px;
        width: 66px;
    }

    .school-login-logo,
    .school-login-logo-fallback {
        height: 49px;
        width: 49px;
    }

    .school-login-school-name {
        font-size: .82rem;
        line-height: 1.4;
    }

    .school-login-school-subtitle {
        font-size: .66rem;
    }

    .school-login-secure-copy {
        font-size: .8rem;
        margin: 8px 0 6px;
    }

    .school-login-heading h1 {
        font-size: 1.7rem;
        margin-bottom: 5px;
    }

    .school-login-heading > p:not(.school-login-secure-copy) {
        font-size: .8rem;
        margin-bottom: 12px;
    }

    .school-login-form .mb-3 {
        margin-bottom: 10px !important;
    }

    .school-login-card .form-label {
        font-size: .76rem;
        margin-bottom: 4px;
    }

    .school-login-field {
        min-height: 47px;
    }

    .school-login-field > i {
        flex-basis: 40px;
    }

    .school-login-card .form-control {
        min-height: 45px;
        padding-bottom: .55rem;
        padding-top: .55rem;
    }

    .school-login-password-toggle {
        height: 35px;
        width: 37px;
    }

    .school-login-submit {
        min-height: 46px;
    }

    .school-login-forgot {
        margin-top: 10px;
    }

    .school-login-copyright {
        margin-top: 11px;
    }
}


/* Short laptops / browser with large toolbar */
@media (max-height: 700px) and (min-width: 576px) {
    .school-login-card {
        padding-bottom: 15px;
        padding-top: 15px;
    }

    .school-login-language {
        margin-bottom: 4px;
    }

    .school-login-logo-wrap {
        height: 58px;
        margin-bottom: 7px;
        width: 58px;
    }

    .school-login-logo,
    .school-login-logo-fallback {
        height: 42px;
        width: 42px;
    }

    .school-login-school-name {
        font-size: .76rem;
    }

    .school-login-school-subtitle {
        font-size: .62rem;
        margin-top: 1px;
    }

    .school-login-secure-copy {
        font-size: .76rem;
        margin: 5px 0;
    }

    .school-login-heading h1 {
        font-size: 1.55rem;
        margin-bottom: 3px;
    }

    .school-login-heading > p:not(.school-login-secure-copy) {
        font-size: .76rem;
        margin-bottom: 8px;
    }

    .school-login-form .mb-3 {
        margin-bottom: 7px !important;
    }

    .school-login-field {
        min-height: 43px;
    }

    .school-login-card .form-control {
        min-height: 41px;
    }

    .school-login-submit {
        min-height: 43px;
    }

    .school-login-forgot {
        font-size: .78rem;
        margin-top: 7px;
    }

    .school-login-copyright {
        font-size: .74rem;
        margin-top: 7px;
    }
}


/* Mobile */
@media (max-width: 575.98px) {
    .school-login-shell {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 12px;
    }

    .school-login-card {
        border-radius: 22px;
        max-width: 430px;
        padding: 22px 18px 24px;
        width: 100%;
    }

    .school-login-language {
        justify-content: center;
        margin-bottom: 10px;
    }

    .school-login-language label {
        font-size: .74rem;
    }

    .school-login-language .form-select {
        min-height: 35px;
        min-width: 110px;
    }

    .school-login-school-name {
        font-size: .8rem;
        letter-spacing: .17em;
    }

    .school-login-school-subtitle {
        font-size: .66rem;
    }

    .school-login-logo-wrap {
        height: 68px;
        margin-bottom: 12px;
        width: 68px;
    }

    .school-login-logo,
    .school-login-logo-fallback {
        height: 50px;
        width: 50px;
    }

    .school-login-secure-copy {
        font-size: .8rem;
        margin: 9px 0 7px;
    }

    .school-login-heading h1 {
        font-size: 1.7rem;
    }

    .school-login-heading > p:not(.school-login-secure-copy) {
        font-size: .8rem;
        margin-bottom: 14px;
    }

    .school-login-field {
        min-height: 50px;
    }

    .school-login-card .form-control {
        min-height: 48px;
    }

    .school-login-submit {
        min-height: 48px;
    }
}


/* Very short mobile screens / landscape phones */
@media (max-height: 620px) {
    .school-login-shell {
        align-items: flex-start;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .school-login-card {
        margin: 0 auto;
    }
}