/* VidhyaMatrix sign-in: warm paper, deep institutional navy and living teal. */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--lp-text-main);
    background: #f2f5ef;
    font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.lp-wrapper {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 5% 12%, rgba(214, 230, 216, .55), transparent 36%),
        linear-gradient(135deg, #f5f4e9 0%, #edf3ee 58%, #e8f0ec 100%);
}

.lp-form-col {
    display: flex;
    width: 50%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 72px);
    overflow-y: auto;
    background: transparent;
}

.lp-form-inner {
    position: relative;
    width: 100%;
    max-width: 448px;
    padding: clamp(28px, 3.2vw, 44px);
    border: 1px solid rgba(213, 226, 217, .92);
    border-radius: 22px;
    background: rgba(255, 254, 250, .88);
    box-shadow: 0 22px 62px rgba(29, 66, 59, .10), 0 3px 12px rgba(29, 66, 59, .045);
    animation: lp-rise-in .65s cubic-bezier(.2, .75, .25, 1) both;
}

.lp-form-inner::before {
    position: absolute;
    top: 0;
    left: 34px;
    width: 54px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--lp-primary);
    content: "";
}

.lp-brand-col {
    position: relative;
    display: flex;
    width: 50%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(34px, 5vw, 76px);
    background:
        radial-gradient(ellipse at 92% 8%, rgba(182, 211, 183, .5), transparent 36%),
        radial-gradient(ellipse at 0% 100%, rgba(214, 229, 208, .55), transparent 37%),
        #e9f0e8;
}

.lp-brand-col::before,
.lp-brand-col::after {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(36, 87, 79, .09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.lp-brand-col::before {
    top: -170px;
    right: -135px;
    width: 390px;
    height: 390px;
}

.lp-brand-col::after {
    right: -74px;
    bottom: -244px;
    width: 460px;
    height: 460px;
}

.lp-promo {
    position: relative;
    z-index: 1;
    width: min(100%, 570px);
    animation: lp-rise-in .75s .08s cubic-bezier(.2, .75, .25, 1) both;
}

.lp-promo-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #244a4d;
}

.lp-promo-mark {
    display: inline-flex;
    width: 33px;
    height: 33px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 105, 92, .2);
    border-radius: 10px;
    background: rgba(255, 254, 250, .64);
    color: #216c60;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.lp-promo-brand {
    font-size: .91rem;
    font-weight: 760;
    letter-spacing: -.025em;
}

.lp-promo-context {
    margin-left: auto;
    color: #718784;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .025em;
}

.lp-carousel {
    position: relative;
}

.lp-carousel-track {
    display: grid;
}

.lp-carousel-slide {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px);
    transition: opacity .38s ease, transform .38s ease, visibility .38s;
    pointer-events: none;
}

.lp-carousel-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lp-slide-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.48;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 19px;
    background: #d2e0d8;
    box-shadow: 0 20px 46px rgba(33, 72, 65, .17), 0 3px 9px rgba(33, 72, 65, .08);
}

.lp-slide-image::after {
    position: absolute;
    inset: 42% 0 0;
    background: linear-gradient(180deg, transparent, rgba(15, 43, 41, .55));
    content: "";
    pointer-events: none;
}

.lp-slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 43%;
}

.lp-image-caption {
    position: absolute;
    z-index: 1;
    right: 17px;
    bottom: 15px;
    left: 18px;
    color: #fffefa;
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .01em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

.lp-slide-copy {
    padding: 22px 3px 0;
}

.lp-slide-kicker {
    margin: 0 0 8px;
    color: #377d6b;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.lp-slide-copy h2 {
    max-width: 510px;
    margin: 0 0 8px;
    color: #173b4b;
    font-size: clamp(1.55rem, 2.45vw, 2.12rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.lp-slide-copy > p:last-child {
    max-width: 465px;
    margin: 0;
    color: #617976;
    font-size: .88rem;
    line-height: 1.65;
}

.lp-carousel-controls {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.lp-carousel-dots,
.lp-carousel-arrows {
    display: flex;
    align-items: center;
    gap: 9px;
}

.lp-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #b2c4ba;
    cursor: pointer;
    transition: width .22s ease, background-color .22s ease;
}

.lp-carousel-dot.is-active {
    width: 25px;
    background: #287565;
}

.lp-carousel-arrow {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(58, 105, 92, .21);
    border-radius: 50%;
    background: rgba(255, 254, 250, .58);
    color: #315b56;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.lp-carousel-arrow:hover {
    transform: translateY(-1px);
    background: #2c7566;
    color: #fffefa;
}

.lp-carousel-dot:focus-visible,
.lp-carousel-arrow:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--lp-primary) 34%, transparent);
    outline-offset: 3px;
}

.lp-promo-footnote {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 26px 0 0;
    color: #748783;
    font-size: .72rem;
    letter-spacing: .005em;
}

.lp-promo-footnote span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6b9a78;
}

.lp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.lp-heading {
    margin: 0 0 8px;
    color: var(--lp-navy);
    font-size: clamp(1.8rem, 2.4vw, 2.15rem);
    font-weight: 730;
    letter-spacing: -.045em;
    line-height: 1.15;
}

.lp-subheading {
    margin: 0 0 30px;
    color: var(--lp-text-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.lp-label {
    display: block;
    margin: 0 0 7px;
    color: #294650;
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .005em;
}

.lp-input-group {
    margin-bottom: 19px;
}

.lp-input-wrapper {
    position: relative;
}

.lp-input-icon {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 15px;
    color: #829995;
    font-size: .88rem;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color .2s ease;
}

.lp-input {
    width: 100%;
    height: 49px;
    padding: 0 44px;
    border: 1px solid var(--lp-border);
    border-radius: 11px;
    outline: none;
    background: var(--lp-bg-input);
    color: var(--lp-text-main);
    font: inherit;
    font-size: .91rem;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.lp-input::placeholder {
    color: #9aa9a4;
    opacity: .8;
}

.lp-input:focus {
    border-color: var(--lp-primary);
    background: #fffefa;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-primary) 16%, transparent);
}

.lp-input-wrapper:focus-within .lp-input-icon {
    color: var(--lp-primary);
}

.lp-pw-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 14px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #718783;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .18s ease, transform .18s ease;
}

.lp-pw-toggle:hover {
    color: var(--lp-primary);
}

.lp-pw-toggle:active {
    transform: translateY(-50%) scale(.93);
}

.lp-pw-toggle:focus-visible,
.lp-whats-this:focus-visible,
.lp-forgot a:focus-visible,
.lp-signup-link a:focus-visible,
.lp-btn-signin:focus-visible,
.lp-demo-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--lp-primary) 34%, transparent);
    outline-offset: 3px;
}

.lp-school-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.lp-whats-this,
.lp-forgot a {
    color: var(--lp-primary-dk);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.lp-whats-this:hover,
.lp-forgot a:hover {
    color: var(--lp-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-forgot {
    margin: -1px 0 20px;
    text-align: right;
}

.lp-btn-signin {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 11px;
    background: var(--lp-primary);
    box-shadow: var(--lp-shadow-btn);
    color: #fff !important;
    cursor: pointer;
    font: inherit;
    font-size: .94rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lp-btn-signin:hover {
    background: var(--lp-primary-dk);
    box-shadow: 0 12px 23px rgba(20, 91, 88, .23);
    transform: translateY(-2px);
}

.lp-btn-signin:active {
    transform: translateY(0);
}

.lp-signup-link {
    margin-top: 19px;
    text-align: center;
}

.lp-signup-link a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(135deg, #428f74, #14715f);
    box-shadow: 0 8px 18px rgba(30, 110, 91, .22);
    color: #fff !important;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow .2s ease, filter .2s ease, transform .2s ease;
}

.lp-signup-link a:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 22px rgba(30, 110, 91, .28);
    filter: brightness(1.06);
    color: #fff !important;
}

.lp-alert {
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: .84rem;
}

.lp-alert-success {
    border: 1px solid #b9dfcc;
    background: #eaf6ed;
    color: #286449;
}

.lp-alert-danger {
    border: 1px solid #edc9c3;
    background: #fbefeb;
    color: #93473e;
}

.lp-demo-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 14px;
    color: #82938d;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lp-demo-divider::before,
.lp-demo-divider::after {
    height: 1px;
    flex: 1;
    background: var(--lp-border);
    content: "";
}

.lp-demo-group-label {
    margin-bottom: 8px;
    color: #728680;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lp-demo-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.lp-demo-btn {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(255, 254, 250, .7);
    cursor: pointer;
    font: inherit;
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .18s ease, transform .18s ease;
}

.lp-demo-btn:hover {
    background: #edf5ef;
    transform: translateY(-1px);
}

.lp-demo-btn-teal, .lp-demo-btn-admin { color: #197b69; }
.lp-demo-btn-indigo { color: #536b80; }
.lp-demo-btn-teacher { color: #a95b50; }
.lp-demo-btn-staff { color: #477b77; }

/* The included registration partial is intentionally styled here rather than
   changed, so its routes, generated fields and validation remain untouched. */
.formModal .modal-dialog {
    max-width: 960px;
}

.formModal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(211, 226, 217, .9);
    border-radius: 20px;
    background: #f5f7f1;
    box-shadow: 0 28px 80px rgba(20, 49, 45, .23);
}

.formModal .rightSide {
    padding: 0 30px 25px;
    border-radius: 20px;
    background: #f5f7f1;
}

.formModal .modal-header {
    padding: 25px 0 17px;
    border-bottom: 1px solid #dce7e1;
}

.formModal .modal-title {
    color: var(--lp-navy);
    font-size: 1.45rem !important;
    font-weight: 750;
    letter-spacing: -.025em;
}

.formModal .btn-close {
    border-radius: 50%;
    background-color: #e8efea;
    opacity: .8;
}

.formModal .btn-close:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--lp-primary) 38%, transparent);
    box-shadow: none;
}

.formModal .modal-body {
    padding: 22px 0 0;
}

.formModal .schoolFormWrapper {
    padding: 0;
}

.formModal .rightSide .headingWrapper {
    margin-bottom: 20px;
}

.formModal .rightSide .headingWrapper span {
    position: relative;
    color: var(--lp-navy);
    font-size: 1.12rem;
    font-weight: 750;
}

.formModal .rightSide .headingWrapper span::before {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    border-radius: 4px;
    background: var(--lp-primary);
    content: "";
}

.formModal .rightSide .headingWrapper span::after {
    display: none;
}

.formModal .rightSide .formWrapper {
    margin-top: 19px;
}

.formModal .rightSide .formWrapper .row {
    row-gap: 17px;
}

.formModal .rightSide .formWrapper .inputWrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
}

.formModal .rightSide .formWrapper .inputWrapper label,
.formModal .rightSide .formWrapper > .row > div > label {
    color: #294650;
    font-size: .82rem;
    font-weight: 650;
}

.formModal .rightSide .formWrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.formModal .rightSide .formWrapper select,
.formModal .rightSide .formWrapper textarea {
    width: 100%;
    min-height: 45px;
    padding: 10px 13px;
    border: 1px solid #d6e2dc;
    border-radius: 10px;
    outline: none;
    background: #fffefa;
    color: var(--lp-text-main);
    font: inherit;
    font-size: .89rem;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.formModal .rightSide .formWrapper textarea {
    min-height: 90px;
    resize: vertical;
}

.formModal .rightSide .formWrapper input::placeholder,
.formModal .rightSide .formWrapper textarea::placeholder {
    color: #97a7a1;
}

.formModal .rightSide .formWrapper input:focus,
.formModal .rightSide .formWrapper select:focus,
.formModal .rightSide .formWrapper textarea:focus {
    border-color: var(--lp-primary);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-primary) 15%, transparent);
}

.formModal .rightSide .formWrapper input[type="radio"],
.formModal .rightSide .formWrapper input[type="checkbox"] {
    accent-color: var(--lp-primary);
}

.formModal .rightSide .formWrapper .form-check-label,
.formModal .rightSide .formWrapper .form-check {
    color: #506b70;
}

.formModal .rightSide .formWrapper .inputWrapper input::-webkit-outer-spin-button,
.formModal .rightSide .formWrapper .inputWrapper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.formModal .adminFormWrapper {
    margin-top: 20px;
}

.formModal .modalfooter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding-top: 15px;
    border-top: 1px solid #dce7e1;
}

.formModal .modalfooter .inputWrapper {
    margin: 0;
}

.formModal .modalfooter .commonBtn,
.formModal .modalfooter input[type="submit"] {
    min-width: 132px;
    min-height: 46px;
    padding: 10px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--lp-primary);
    box-shadow: 0 8px 18px rgba(20, 91, 88, .17);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.formModal .modalfooter .commonBtn:hover,
.formModal .modalfooter input[type="submit"]:hover {
    transform: translateY(-1px);
    background: var(--lp-primary-dk);
    box-shadow: 0 10px 20px rgba(20, 91, 88, .2);
}

.formModal .modalfooter .commonBtn:focus-visible,
.formModal .modalfooter input[type="submit"]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--lp-primary) 38%, transparent);
    outline-offset: 3px;
}

.formModal .g-recaptcha {
    max-width: 100%;
}

.formModal.show .modal-dialog {
    animation: lp-modal-in .34s cubic-bezier(.2, .75, .25, 1) both;
}

.modal-backdrop.show {
    opacity: .48;
    background: #173b42;
}

@keyframes lp-rise-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lp-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 991.98px) {
    .lp-wrapper {
        flex-direction: column;
    }

    .lp-form-col,
    .lp-brand-col {
        width: 100%;
    }

    .lp-form-col {
        min-height: auto;
        padding: 40px 24px;
        order: 0;
    }

    .lp-brand-col {
        display: none;
        min-height: auto;
        padding: 36px 24px 42px;
        order: 1;
    }

    .lp-form-inner {
        max-width: 500px;
    }

    .formModal .modal-dialog {
        margin: 1rem;
    }
}

@media (max-width: 575.98px) {
    .lp-form-col {
        padding: 24px 16px 34px;
        order: 0;
    }

    .lp-form-inner {
        padding: 28px 21px;
        border-radius: 18px;
    }

    .lp-form-inner::before {
        left: 22px;
    }

    .lp-subheading {
        margin-bottom: 24px;
    }

    .lp-promo-topline {
        display: none;
    }

    .lp-promo-context {
        font-size: .66rem;
    }

    .lp-slide-image {
        aspect-ratio: 2.25;
        border-radius: 15px;
    }

    .lp-carousel-slide {
        position: relative;
    }

    .lp-slide-image::after {
        inset: 0;
        background: linear-gradient(180deg, rgba(15, 43, 41, .06) 18%, rgba(15, 43, 41, .88) 100%);
    }

    .lp-image-caption {
        display: none;
    }

    .lp-slide-copy {
        position: absolute;
        z-index: 2;
        right: 15px;
        bottom: 13px;
        left: 15px;
        padding: 0;
    }

    .lp-slide-kicker {
        margin-bottom: 5px;
        color: #c1e5cb;
        font-size: .58rem;
    }

    .lp-slide-copy h2 {
        margin-bottom: 5px;
        color: #fffefa;
        font-size: clamp(1.16rem, 5.1vw, 1.35rem);
        line-height: 1.08;
    }

    .lp-slide-copy > p:last-child {
        display: -webkit-box;
        overflow: hidden;
        color: rgba(255, 254, 250, .92);
        font-size: .73rem;
        line-height: 1.34;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .lp-carousel-controls {
        min-height: 28px;
        margin-top: 4px;
    }

    .lp-carousel-arrow {
        width: 32px;
        height: 32px;
    }

    .lp-promo-footnote {
        display: none;
    }

    .lp-demo-btns {
        gap: 7px;
    }

    .lp-demo-btn {
        padding: 6px 10px;
        font-size: .73rem;
    }

    .formModal .modal-dialog {
        margin: .5rem;
    }

    .formModal .rightSide {
        padding: 0 17px 20px;
    }

    .formModal .modal-header {
        padding-top: 20px;
    }

    .formModal .modal-title {
        font-size: 1.18rem !important;
    }

    .formModal .modalfooter {
        justify-content: stretch;
    }

    .formModal .modalfooter > div:last-child,
    .formModal .modalfooter input[type="submit"] {
        width: 100%;
    }
}

@media (max-height: 560px) and (orientation: landscape) and (min-width: 992px) {
    .lp-wrapper {
        min-height: 560px;
    }

    .lp-form-col,
    .lp-brand-col {
        min-height: 560px;
    }

    .lp-form-col {
        align-items: flex-start;
        padding-top: 28px;
        padding-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
