/*
 * Login page on a school's own address: the school's colours and brand panel.
 * Colours come from the school's settings (login_theme_color, login_accent_color);
 * the photo is the school's "Login page logo" setting.
 */
:root {
    --lp-primary-dk: color-mix(in srgb, var(--theme-color) 78%, #000);
}

.lp-btn-signin:hover,
.lp-btn-signin:focus-visible {
    background: var(--lp-primary-dk) !important;
}
.lp-input:focus {
    border-color: var(--theme-color) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-color) 18%, transparent) !important;
}
.lp-forgot a,
.lp-signup-link a {
    color: var(--theme-color) !important;
}
.lp-heading::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 12px;
    border-radius: 4px;
    background: var(--lp-accent);
}

/* ---------- Brand panel ---------- */
.lp-school-brand {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    background-color: var(--theme-color);
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1.6px, transparent 1.8px);
    background-size: 18px 18px;
}
.lp-school-brand.has-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--lp-photo) center 30% / cover no-repeat;
    animation: lp-slow-zoom 22s ease-in-out infinite alternate;
}
.lp-school-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg,
            color-mix(in srgb, var(--theme-color) 15%, transparent) 0%,
            color-mix(in srgb, var(--theme-color) 55%, transparent) 45%,
            color-mix(in srgb, var(--theme-color) 94%, transparent) 78%);
}
.lp-school-brand:not(.has-photo)::after { background: none; }

.lp-school-brand__inner {
    width: 100%;
    max-width: 560px;
    padding: 56px 56px 64px;
    color: #fff;
    animation: lp-rise .9s cubic-bezier(.2, .65, .3, 1) both .15s;
}
.lp-school-brand__logo {
    width: 104px;
    height: 104px;
    padding: 10px;
    margin-bottom: 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
    display: grid;
    place-items: center;
}
.lp-school-brand__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lp-school-brand__eyebrow {
    margin: 0 0 8px;
    color: var(--lp-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.lp-school-brand__name {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.1;
}
.lp-school-brand__tagline {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    line-height: 1.5;
}
.lp-school-brand__rule {
    display: block;
    width: 72px;
    height: 4px;
    margin: 24px 0 18px;
    border-radius: 4px;
    background: var(--lp-accent);
    transform-origin: left;
    animation: lp-grow .8s cubic-bezier(.2, .65, .3, 1) both .7s;
}
.lp-school-brand__note { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; }

@keyframes lp-slow-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Tablets and phones: the school's panel comes first, as a compact banner */
@media (max-width: 991.98px) {
    .lp-school-brand { order: -1; min-height: 300px !important; }
    .lp-school-brand__inner { padding: 32px 28px 30px; }
    .lp-school-brand__logo { width: 76px; height: 76px; margin-bottom: 16px; border-radius: 18px; }
    .lp-school-brand__note { display: none; }
    .lp-school-brand__rule { margin: 16px 0 0; }
}
@media (max-width: 575.98px) {
    .lp-school-brand { min-height: 260px !important; }
    .lp-school-brand__inner { padding: 26px 18px 24px; }
    .lp-school-brand__tagline { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-school-brand.has-photo::before,
    .lp-school-brand__inner,
    .lp-school-brand__rule { animation: none; }
}
