/* ============================================================================
   Schoolyam — Login off-canvas ("Aurora Console" popup)
   Scoped ENTIRELY under #offcanvasExample so nothing here can leak into the
   rest of Default.aspx. Several rules need !important purely to beat the
   legacy !important globals in defaultpage.css (.form-control, .btn-close,
   input[type=radio] sizing, .offcanvas background image...).

   Desktop : [ Timetable feature panel ] [ Login panel ]
   Mobile  : login sheet on top, feature panel underneath (app-style).
   ========================================================================= */

#offcanvasExample {
    --syl-ink: #14121a;
    --syl-ink-2: #1f1b29;
    --syl-orange: #e2552f;
    --syl-orange-lt: #f4793f;
    --syl-green: #3b8c3f;
    --syl-green-lt: #64c46a;
    --syl-blue: #0e76ce;
    --syl-text: #1b1826;
    --syl-muted: #6e6880;
    --syl-line: #e8e4ef;
    --syl-field: #f5f3f8;
    font-family: 'Sora', 'Segoe UI', Arial, sans-serif;
}

    /* ---------- stage : kill the legacy purple jpg, go dark aurora ---------- */
    #offcanvasExample.offcanvas.offcanvas-start {
        width: 100% !important;
        background-image: none !important;
        background-color: var(--syl-ink) !important;
        border: 0 !important;
    }

    #offcanvasExample .offcanvas-header {
        display: none !important;
    }

    #offcanvasExample .offcanvas-body {
        position: relative;
        padding: 0 !important;
        background-image: none !important;
        background-color: transparent !important;
        overflow-x: hidden;
    }

    #offcanvasExample * {
        box-sizing: border-box;
    }

.syl-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 22px calc(34px + env(safe-area-inset-bottom));
}

.syl-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(120% 100% at 50% 0%, #241f30 0%, #14121a 55%, #0e0c14 100%);
}

.syl-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.syl-blob--orange {
    width: 44vw;
    height: 44vw;
    min-width: 320px;
    min-height: 320px;
    top: -13vw;
    left: -7vw;
    opacity: .5;
    background: var(--syl-orange);
    animation: sylDrift1 22s ease-in-out infinite;
}

.syl-blob--blue {
    width: 40vw;
    height: 40vw;
    min-width: 300px;
    min-height: 300px;
    bottom: -16vw;
    right: -6vw;
    opacity: .36;
    background: var(--syl-blue);
    animation: sylDrift2 26s ease-in-out infinite;
}

.syl-blob--green {
    width: 28vw;
    height: 28vw;
    min-width: 230px;
    min-height: 230px;
    bottom: 6vh;
    left: 24vw;
    opacity: .28;
    background: var(--syl-green);
    animation: sylDrift3 30s ease-in-out infinite;
}

.syl-mesh {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 42%, #000 0%, transparent 100%);
    mask-image: radial-gradient(70% 60% at 50% 42%, #000 0%, transparent 100%);
}

@keyframes sylDrift1 {
    0%, 100% {
        transform: translate3d(0,0,0) scale(1);
    }

    50% {
        transform: translate3d(6vw,5vh,0) scale(1.12);
    }
}

@keyframes sylDrift2 {
    0%, 100% {
        transform: translate3d(0,0,0) scale(1.05);
    }

    50% {
        transform: translate3d(-7vw,-6vh,0) scale(1);
    }
}

@keyframes sylDrift3 {
    0%, 100% {
        transform: translate3d(0,0,0);
    }

    50% {
        transform: translate3d(4vw,-7vh,0);
    }
}

/* ---------- close button ---------- */
#offcanvasExample .btn-close {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 18px;
    width: 44px !important;
    height: 44px;
    padding: 0 !important;
    display: grid;
    place-items: center;
    float: none !important;
    transform: none !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.08) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #fff;
    opacity: 1 !important;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease;
}

    #offcanvasExample .btn-close:hover {
        background: rgba(255,255,255,.16) !important;
        transform: rotate(90deg) !important;
    }

    #offcanvasExample .btn-close svg {
        width: 18px;
        height: 18px;
        display: block;
    }

    #offcanvasExample .btn-close .close-container {
        display: none !important;
    }

/* ---------- shell ---------- */
.syl-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1090px;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 120px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.09);
    animation: sylRise .7s cubic-bezier(.22,1,.36,1) both;
}

@keyframes sylRise {
    from {
        opacity: 0;
        transform: translateY(26px) scale(.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ===========================================================================
   LEFT — Timetable feature showcase
   ======================================================================== */
.syl-feature {
    order: -1; /* pulled to the left on desktop; DOM order keeps login first on mobile */
    position: relative;
    padding: 44px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(155deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 45%, rgba(255,255,255,.06) 100%), rgba(20,18,26,.62);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    backdrop-filter: blur(26px) saturate(140%);
    border-right: 1px solid rgba(255,255,255,.09);
}

.syl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 9px;
    border-radius: 999px;
    background: rgba(226,85,47,.16);
    border: 1px solid rgba(244,121,63,.34);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffb99a;
    width: -webkit-fit-content;
    width: fit-content;
}

    .syl-badge svg {
        width: 15px;
        height: 15px;
        display: block;
        color: var(--syl-orange-lt);
    }

.syl-feature h2 {
    margin: 20px 0 12px;
    font-size: 32px;
    line-height: 1.24;
    font-weight: 600;
    letter-spacing: -.02em;
    color: #fff;
}

    .syl-feature h2 em {
        font-style: normal;
        background: linear-gradient(96deg, var(--syl-orange-lt), #ffb27a);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.syl-feature .syl-sub {
    margin: 0 0 24px;
    font-size: 14px !important;
    line-height: 1.65;
    font-weight: 300;
    color: rgba(255,255,255,.62);
    max-width: 40ch;
}

/* mini timetable mock */
.syl-tt {
    border-radius: 18px;
    padding: 14px;
    background: rgba(9,8,13,.5);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.syl-tt__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

    .syl-tt__head span {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: rgba(255,255,255,.45);
    }

.syl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #7fdc86;
    background: rgba(59,140,63,.18);
    border: 1px solid rgba(100,196,106,.32);
}

    .syl-chip svg {
        width: 12px;
        height: 12px;
        display: block;
    }

.syl-tt__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.syl-cell {
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .03em;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.07);
}

    .syl-cell.is-day {
        height: 22px;
        background: none;
        border: 0;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: rgba(255,255,255,.35);
    }

    .syl-cell.is-o {
        color: #ffb99a;
        background: rgba(226,85,47,.2);
        border-color: rgba(244,121,63,.3);
    }

    .syl-cell.is-g {
        color: #9fe0a4;
        background: rgba(59,140,63,.2);
        border-color: rgba(100,196,106,.3);
    }

    .syl-cell.is-b {
        color: #9ecdf5;
        background: rgba(14,118,206,.22);
        border-color: rgba(74,166,240,.3);
    }

    /* the "just auto-filled" cell */
    .syl-cell.is-new {
        color: #fff;
        background: linear-gradient(135deg, rgba(244,121,63,.9), rgba(226,85,47,.9));
        border-color: rgba(255,255,255,.35);
        box-shadow: 0 0 0 0 rgba(244,121,63,.55);
        animation: sylPulse 2.6s ease-in-out infinite;
    }

@keyframes sylPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244,121,63,.5);
    }

    55% {
        box-shadow: 0 0 0 7px rgba(244,121,63,0);
    }
}

/* bullets */
.syl-feats {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

    .syl-feats li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13.5px;
        line-height: 1.4;
        font-weight: 300;
        color: rgba(255,255,255,.84);
    }

.syl-dot {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
}

    .syl-dot svg {
        width: 15px;
        height: 15px;
        display: block;
    }

    .syl-dot.is-o svg {
        color: var(--syl-orange-lt);
    }

    .syl-dot.is-g svg {
        color: var(--syl-green-lt);
    }

    .syl-dot.is-b svg {
        color: #4aa6f0;
    }

.syl-feature__foot {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.09);
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 300;
    color: rgba(255,255,255,.42);
}

    .syl-feature__foot b {
        font-size: 21px;
        font-weight: 600;
        letter-spacing: -.02em;
        color: #fff;
    }

/* ===========================================================================
   RIGHT — login panel
   ======================================================================== */
.syl-login {
    background: rgba(255,255,255,.97);
    padding: 20px 42px 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

    .syl-login img.syl-logo {
        display: block;
        width: auto;
        max-width: 240px !important;
        height: auto;
        margin: 0 auto 16px !important;
    }

    .syl-login h2 {
        margin: 0;
        font-size: 23px;
        font-weight: 600;
        letter-spacing: -.01em;
        color: var(--syl-text);
    }

.syl-hint {
    margin: 7px 0 22px !important;
    font-size: 13px !important;
    font-weight: 300;
    color: var(--syl-muted);
}

/* --- segmented School / Parent control (labels keep the legacy radios) --- */
#offcanvasExample .Login456 {
    text-align: left;
}

.syl-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    margin: 0 0 20px;
    border-radius: 16px;
    background: var(--syl-field);
    border: 1px solid var(--syl-line);
}

/* outer <label> that wraps each asp:RadioButton */
#offcanvasExample .syl-tab {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto !important;
    margin: 0 !important;
    padding: 11px 6px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: none !important;
    font-size: 13.5px !important;
    font-weight: 500;
    color: var(--syl-muted) !important;
    cursor: pointer;
    text-align: center;
    box-shadow: none !important;
    transition: color .22s ease, background .28s ease, box-shadow .28s ease;
}

    /* the Staff tab ships hidden (d-none) — keep it that way */
    #offcanvasExample .syl-tab.d-none,
    #offcanvasExample .syl-tab.hidden {
        display: none !important;
    }

    #offcanvasExample .syl-tab svg {
        width: 16px;
        height: 16px;
        display: block;
    }

    /* .dist1 / .dist2 are added to the active tab by the existing radio JS */
    #offcanvasExample .syl-tab.dist1,
    #offcanvasExample .syl-tab.dist2 {
        color: #fff !important;
        border: 0 !important;
        background-image: linear-gradient(100deg, var(--syl-orange-lt) 0%, var(--syl-orange) 100%) !important;
        box-shadow: 0 8px 18px -8px rgba(226,85,47,.9) !important;
    }

        #offcanvasExample .syl-tab.dist1:before,
        #offcanvasExample .syl-tab.dist2:before {
            display: none !important;
        }

    /* the radio input itself covers the whole tab, invisible but clickable */
    #offcanvasExample .syl-tab .badgebox {
        position: absolute;
        inset: 0;
        display: block;
        margin: 0;
    }

    #offcanvasExample .syl-tab input[type="radio"] {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        opacity: 0;
        cursor: pointer;
    }

    #offcanvasExample .syl-tab .badgebox label {
        display: none;
    }

/* --- fields --- */
#offcanvasExample .syl-fg {
    position: relative;
    margin: 0 0 14px;
    max-width: 100% !important;
    padding: 0 !important;
    text-align: left;
}

#offcanvasExample .syl-ic {
    position: absolute;
    left: 16px;
    top: 21px;
    width: 18px;
    height: 18px;
    color: #a9a2b8;
    pointer-events: none;
    z-index: 1;
    transition: color .2s ease;
}

#offcanvasExample .syl-fg:focus-within .syl-ic {
    color: var(--syl-orange);
}

#offcanvasExample .syl-fg .form-control {
    width: 100%;
    height: 60px;
    padding: 6px 46px 6px 46px !important;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--syl-text);
    background: var(--syl-field) !important;
    border: 1.5px solid transparent !important;
    border-radius: 16px !important;
    outline: none;
    box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    #offcanvasExample .syl-fg .form-control:hover {
        background: #f0edf4 !important;
    }

    #offcanvasExample .syl-fg .form-control:focus {
        background: #fff !important;
        border-color: var(--syl-orange) !important;
        box-shadow: 0 0 0 4px rgba(226,85,47,.13) !important;
    }

#offcanvasExample .syl-fg input::-webkit-input-placeholder {
    color: #9c95aa !important;
    font-weight: 400;
}

#offcanvasExample .syl-fg input::placeholder {
    color: #9c95aa !important;
    font-weight: 400;
}

#offcanvasExample #TxtSchoolCode {
    text-transform: uppercase;
    letter-spacing: .16em;
}

    /* ...but the placeholder itself stays normal-cased and un-tracked */
    #offcanvasExample #TxtSchoolCode::-webkit-input-placeholder {
        text-transform: none;
        letter-spacing: normal;
    }

    #offcanvasExample #TxtSchoolCode::placeholder {
        text-transform: none;
        letter-spacing: normal;
    }

#offcanvasExample .syl-eye {
    position: absolute;
    right: 9px;
    top: 11px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: none;
    color: #a9a2b8;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

    #offcanvasExample .syl-eye:hover {
        color: var(--syl-text);
        background: rgba(20,18,26,.05);
    }

    #offcanvasExample .syl-eye svg {
        width: 19px;
        height: 19px;
        display: block;
    }

#offcanvasExample .validator {
    display: block;
    padding: 5px 4px 0 6px;
    font-size: 12px !important;
    font-weight: 500;
    color: var(--syl-orange) !important;
}

/* --- remember me + CTA --- */
#offcanvasExample .syl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 16px;
}

#offcanvasExample .syl-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--syl-text);
    cursor: pointer;
    transform: none !important;
}

#offcanvasExample .toggle-checkbox {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0;
}

#offcanvasExample .toggle-slot {
    position: relative;
    top: 0 !important;
    flex: 0 0 44px;
    width: 44px;
    height: 25px;
    font-size: inherit;
    border-radius: 999px;
    background-color: #d8d3e0;
    transition: background-color .25s ease;
}

#offcanvasExample .toggle-checkbox:checked ~ .toggle-slot {
    background-color: var(--syl-green);
}

#offcanvasExample .toggle-button {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px -1px rgba(20,18,26,.4);
    transform: none;
    transition: transform .32s cubic-bezier(.34,1.4,.44,1);
}

#offcanvasExample .toggle-checkbox:checked ~ .toggle-slot .toggle-button {
    box-shadow: 0 2px 6px -1px rgba(20,18,26,.4);
    transform: translateX(19px);
}

#offcanvasExample .sun-icon-wrapper {
    display: none;
}

#offcanvasExample .syl-help {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--syl-muted);
    text-decoration: none;
}

    #offcanvasExample .syl-help:hover {
        color: var(--syl-orange);
    }

/* asp:Button renders <input type=submit> — no ::after, so the hover sheen is
   a second background layer that slides. */
#offcanvasExample .syl-cta {
    position: relative;
    display: block;
    width: 100% !important;
    height: 56px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 0 !important;
    border-radius: 16px !important;
    font-family: inherit;
    font-size: 14.5px !important;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #fff !important;
    cursor: pointer;
    background-image: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%), linear-gradient(100deg, var(--syl-orange-lt) 0%, var(--syl-orange) 58%, #c9401f 100%);
    background-color: transparent !important;
    background-size: 220% 100%, 100% 100%;
    background-position: 135% 0, 0 0;
    background-repeat: no-repeat;
    box-shadow: 0 14px 30px -12px rgba(226,85,47,.9);
    transition: transform .18s ease, box-shadow .18s ease, background-position .75s cubic-bezier(.3,0,.2,1);
}

    #offcanvasExample .syl-cta:hover {
        color: #fff !important;
        transform: translateY(-2px);
        background-position: -35% 0, 0 0;
        box-shadow: 0 20px 38px -12px rgba(226,85,47,.95);
    }

    #offcanvasExample .syl-cta:active {
        transform: translateY(0) scale(.99);
    }

/* Send OTP — emerald, still white text */
#offcanvasExample .syl-cta--otp {
    background-image: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%), linear-gradient(100deg, #4ea653 0%, var(--syl-green) 58%, #2c6c30 100%);
    box-shadow: 0 14px 30px -12px rgba(59,140,63,.85);
}

    #offcanvasExample .syl-cta--otp:hover {
        box-shadow: 0 20px 38px -12px rgba(59,140,63,.9);
    }

#offcanvasExample .mainbutton,
#offcanvasExample .otpbutton,
#offcanvasExample .parentbutton {
    max-width: 100% !important;
    margin: 0 !important;
}

#offcanvasExample .otpbutton,
#offcanvasExample .parentbutton {
    margin-top: 4px !important;
}

/* parent-OTP "Remember Me" (asp:CheckBox renders span.chk > input + label) */
#offcanvasExample .chk {
    display: flex;
    align-items: center;
    margin: 0 0 14px;
    font-size: 13px;
}

    #offcanvasExample .chk input[type="checkbox"] {
        accent-color: var(--syl-orange);
        cursor: pointer;
    }

    #offcanvasExample .chk label {
        padding-left: 9px !important;
        color: var(--syl-text) !important;
        cursor: pointer;
    }

/* trust strip */
.syl-trust {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 400;
    color: #9c95aa;
}

    .syl-trust svg {
        width: 14px;
        height: 14px;
        display: block;
        color: var(--syl-green);
    }

/* ===========================================================================
   MOBILE — app-style sheet: login first, feature card underneath
   ======================================================================== */
@media (max-width: 900px) {
    .syl-stage {
        align-items: flex-start;
        /* leaves room for the close button to sit above the login sheet */
        padding: 64px 14px calc(24px + env(safe-area-inset-bottom));
    }

    .syl-shell {
        max-width: 460px;
        grid-template-columns: 1fr;
        gap: 14px;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }

    .syl-login {
        order: 1;
        padding: 30px 22px 24px;
        border-radius: 26px;
        box-shadow: 0 26px 60px -22px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
    }

        .syl-login img.syl-logo {
            max-width: 200px !important;
        }

        .syl-login h2 {
            font-size: 21px;
        }

    .syl-trust {
        padding-top: 20px;
    }

    .syl-feature {
        order: 2;
        padding: 26px 22px 24px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 26px;
    }

        .syl-feature h2 {
            font-size: 24px;
            margin: 16px 0 10px;
        }

        .syl-feature .syl-sub {
            margin-bottom: 20px;
            max-width: none;
        }

    .syl-feats {
        margin-top: 18px;
    }

    .syl-feature__foot {
        margin-top: 22px;
    }

    #offcanvasExample .btn-close {
        top: 12px;
        right: 12px;
        width: 40px !important;
        height: 40px;
    }
}

@media (max-width: 380px) {
    .syl-login {
        padding: 26px 16px 20px;
    }

    .syl-feature {
        padding: 22px 16px 20px;
    }

    .syl-cell {
        font-size: 9.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #offcanvasExample *, .syl-blob, .syl-shell, .syl-cell {
        animation: none !important;
        transition: none !important;
    }
}
