/* Separate entrances for education teams and students. */
.teacher-access-page,
.student-access-page {
    color: #203749;
    background: #fbfaf7;
}

.teacher-access-page::before,
.teacher-access-page::after,
.student-access-page::before,
.student-access-page::after {
    display: none;
}

.access-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    line-height: 1.35;
}

.access-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 48px;
    border-radius: 12px 12px 12px 3px;
    font-size: 28px;
    font-weight: 850;
}

.access-brand strong,
.access-brand small {
    display: block;
}

.access-brand strong {
    font-size: 15px;
    font-weight: 750;
}

.access-brand small {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 450;
}

.access-kicker {
    margin: 0 0 18px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.access-arrow {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.access-submit {
    min-height: 56px;
    padding: 14px 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.access-submit:hover .access-arrow,
.teacher-student-link a:hover .access-arrow,
.public-result-back:hover .access-arrow,
.available-exam .btn:hover .access-arrow {
    transform: translateX(4px);
}

.access-submit:active {
    transform: translateY(1px);
}

.teacher-access-page :focus-visible,
.student-access-page :focus-visible {
    outline: 3px solid #6b8ada;
    outline-offset: 4px;
}

.teacher-access-main {
    display: block;
    padding: 0;
}

.teacher-access-main > .notice {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.teacher-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100svh;
}

.teacher-story {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 44px clamp(40px, 5.4vw, 86px) 25px;
    color: #f4f5eb;
    background: #173144;
}

.teacher-brand {
    position: relative;
    z-index: 1;
    color: #f4f5eb;
    animation: access-enter 550ms ease both;
}

.teacher-brand .access-brand-mark {
    color: #173144;
    background: #e6eddf;
}

.teacher-brand small {
    color: #b7c6ce;
}

.teacher-story-copy {
    position: relative;
    z-index: 1;
    margin: auto 0 0;
    padding-top: 62px;
    animation: access-enter 650ms 80ms ease both;
}

.teacher-story-copy .access-kicker {
    color: #a5c1bc;
}

.teacher-story h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 5.4vw, 80px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.teacher-story h1 span {
    color: #c5dbcb;
}

.teacher-story-copy > p:last-child {
    max-width: 345px;
    margin: 25px 0 0;
    color: #c2cfd5;
    font-size: 16px;
    line-height: 1.7;
}

.teacher-story-art {
    display: block;
    width: min(100%, 510px);
    height: auto;
    margin: 25px 0 0 auto;
    animation: access-enter 800ms 160ms ease both;
}

.teacher-story-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #3b5361;
    color: #a9bbc5;
    font-size: 11px;
}

.teacher-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(32px, 5.6vw, 90px);
    background: #fbfaf7;
}

.teacher-form-wrap {
    width: 100%;
    max-width: 410px;
    animation: access-enter 650ms 100ms ease both;
}

.teacher-form-heading .access-kicker {
    color: #58776c;
}

.teacher-form-heading h2 {
    margin: 0;
    color: #193345;
    font-size: clamp(32px, 3.2vw, 42px);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.teacher-form-heading > p:last-child {
    margin: 13px 0 32px;
    color: #68757c;
    font-size: 14px;
}

.teacher-form {
    display: grid;
    gap: 9px;
}

.teacher-form label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

.teacher-form input {
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 14px 15px;
    border: 1px solid #d4dcda;
    border-radius: 9px;
    color: #203749;
    background: #fff;
    font-size: 15px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.teacher-form input::placeholder {
    color: #6b7880;
    font-size: 14px;
}

.teacher-form input:focus {
    outline: none;
    border-color: #527c75;
    box-shadow: 0 0 0 3px #e5eeea;
}

.teacher-password-field {
    position: relative;
}

.teacher-password-field input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 59px;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    color: #4c6b6a;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.password-toggle:hover {
    background: #edf3ef;
}

.teacher-submit {
    width: 100%;
    margin-top: 18px;
    background: #173144;
}

.teacher-submit:hover {
    background: #294f65;
    box-shadow: 0 6px 16px #17314416;
}

.teacher-student-link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 34px;
    padding: 24px 0;
    border-top: 1px solid #e1e6e1;
    border-bottom: 1px solid #e1e6e1;
}

.student-link-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #3d6758;
    background: #e8eee5;
}

.student-link-symbol svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.teacher-student-link strong {
    display: block;
    color: #68757c;
    font-size: 12px;
    font-weight: 500;
}

.teacher-student-link a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    color: #193f56;
    font-size: 14px;
    font-weight: 750;
}

.teacher-powered.login-powered-by {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.teacher-powered .login-powered-copy,
.student-powered .login-powered-copy {
    flex-wrap: wrap;
    color: #68757c;
    font-size: 10px;
    font-weight: 500;
}

.teacher-powered .login-powered-copy strong,
.student-powered .login-powered-copy strong {
    color: #c93037;
    font-size: 11px;
    font-weight: 750;
}

.teacher-powered.login-powered-by img,
.student-powered.login-powered-by img {
    width: 29px;
    height: 29px;
}

.student-access-page {
    background: #f4f7fc;
}

.student-access-main {
    padding: 30px clamp(22px, 4.6vw, 72px) 20px;
    color: #213d61;
}

.student-access-page .public-result-stage.is-empty {
    width: min(1220px, 100%);
    min-height: calc(100svh - 50px);
    grid-template-rows: auto 1fr auto;
    gap: 0;
    padding-bottom: 0;
}

.student-access-page .public-result-nav {
    padding-bottom: 22px;
    border-bottom: 1px solid #dfe6f0;
}

.student-brand {
    color: #243e60;
}

.student-brand .access-brand-mark {
    color: #fff;
    background: #4566cc;
}

.student-brand small {
    color: #60718b;
}

.student-access-page .public-result-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 0 8px 12px;
    border: 0;
    border-radius: 0;
    color: #506587;
    background: transparent;
    backdrop-filter: none;
    font-size: 12px;
    font-weight: 650;
}

.student-access-page .public-result-back:hover {
    color: #3459c2;
}

.student-access-page .is-empty .public-result-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(36px, 6vw, 90px);
    row-gap: 28px;
    align-content: center;
    align-items: center;
    min-height: 0;
    padding: 38px 0;
}

.student-intro-copy {
    grid-column: 1;
    grid-row: 1;
    animation: access-enter 600ms 50ms ease both;
}

.student-intro-copy .access-kicker {
    color: #60718b;
    font-size: 10px;
}

.student-intro-copy h1 {
    margin: 0;
    color: #203c61;
    font-size: clamp(46px, 5.2vw, 70px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.06;
}

.student-intro-copy h1 span {
    color: #4566cc;
}

.student-intro-copy > p:last-child {
    max-width: 380px;
    margin: 22px 0 0;
    color: #60718b;
    font-size: 16px;
    line-height: 1.65;
}

.student-access-page .is-empty .student-search-form {
    grid-column: 1;
    grid-row: 2;
    position: static;
    align-self: start;
    padding: 0;
    animation: access-enter 650ms 130ms ease both;
}

.student-search-heading {
    display: none;
}

.student-search-form {
    min-width: 0;
    overflow: visible;
}

.student-search-form label {
    display: block;
    margin-bottom: 10px;
    color: #334d70;
    font-size: 13px;
    font-weight: 700;
}

.student-index-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.student-index-row input {
    width: 100%;
    min-width: 0;
    height: 58px;
    border: 1px solid #cfd9e9;
    border-radius: 10px;
    padding: 14px 17px;
    color: #213d61;
    background: #fff;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 0.025em;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.student-index-row input::placeholder {
    color: #6b7880;
    font-size: 14px;
    font-weight: 450;
    letter-spacing: 0;
}

.student-index-row input:focus {
    outline: none;
    border-color: #6a85d4;
    box-shadow: 0 0 0 4px #e3eafb;
}

.student-submit {
    min-height: 58px;
    padding: 14px 17px;
    gap: 13px;
    border-radius: 10px;
    background: #4566cc;
    white-space: nowrap;
    font-size: 13px;
}

.student-submit:hover {
    background: #3454b8;
    box-shadow: 0 7px 17px #4566cc20;
}

.student-search-help {
    margin: 12px 0 0;
    color: #60718b;
    font-size: 11px;
    line-height: 1.6;
}

.student-hero-art {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    justify-items: center;
    align-content: center;
    min-width: 0;
    animation: access-enter 800ms 150ms ease both;
}

.student-hero-art img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    animation: learning-float 7s 900ms ease-in-out infinite;
}

.student-hero-art > span {
    margin-top: 7px;
    color: #60718b;
    font-size: 11px;
}

.student-portal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid #dfe6f0;
    color: #60718b;
    font-size: 10px;
}

.student-powered.login-powered-by {
    flex: 0 0 auto;
    gap: 8px;
    animation: none;
}

.student-access-page .public-result-stage.has-result {
    width: min(1480px, 100%);
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 20px;
    padding: 0;
}

.student-access-page .has-result .public-result-nav {
    grid-column: 1 / -1;
    padding-bottom: 18px;
}

.student-access-page .has-result .student-intro-copy,
.student-access-page .has-result .student-hero-art {
    display: none;
}

.student-access-page .has-result .public-result-intro {
    display: block;
    position: sticky;
    top: 24px;
    min-height: 0;
    padding: 26px 22px;
    border: 1px solid #dce4f0;
    border-radius: 14px;
    background: #fff;
    animation: access-enter 550ms ease both;
}

.student-access-page .has-result .student-search-form {
    position: static;
    padding: 0;
}

.student-access-page .has-result .student-search-heading {
    display: block;
}

.student-search-heading .access-kicker {
    margin-bottom: 8px;
    color: #60718b;
}

.student-access-page .has-result .student-search-form h2 {
    margin: 0 0 27px;
    color: #29456a;
    font-size: 25px;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.student-access-page .has-result .student-index-row {
    grid-template-columns: minmax(0, 1fr);
}

.student-access-page .has-result .student-index-row input,
.student-access-page .has-result .student-submit {
    height: 52px;
    min-height: 52px;
}

.student-access-page .available-exams {
    padding: 30px;
    border: 1px solid #dce4f0;
    border-radius: 14px;
    box-shadow: none;
}

.student-access-page .available-exams .eyebrow {
    color: #60718b;
    font-size: 10px;
}

.student-access-page .available-exams h2 {
    color: #29456a;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.student-access-page .available-exams-student {
    color: #60718b;
    font-size: 13px;
}

.student-access-page .available-exams-student strong {
    color: #3d5678;
}

.student-access-page .available-exam-list,
.student-access-page .available-exam {
    border-color: #e5eaf3;
}

.student-access-page .available-exam-info strong {
    color: #29456a;
    font-size: 16px;
}

.student-access-page .available-exam-info span {
    color: #60718b;
    font-size: 12px;
}

.student-access-page .available-exam .btn.primary {
    min-height: 46px;
    margin: 0;
    border-color: #4566cc;
    background: #4566cc;
    font-size: 12px;
    box-shadow: none;
}

.student-access-page .available-exam .btn.primary:hover {
    border-color: #3454b8;
    background: #3454b8;
    transform: none;
}

.student-access-page .available-exam-status {
    font-size: 11px;
}

.student-access-page .available-exams-empty {
    color: #60718b;
    font-size: 14px;
}

.student-access-page .result-list-back {
    gap: 8px;
    margin-top: -5px;
    color: #50698f;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.student-access-page .result-list-back::before {
    content: "\2190";
    font-size: 19px;
}

.student-access-page .result-list-back:hover {
    color: #3454b8;
}

.student-access-page .student-result-sheet {
    box-shadow: 0 12px 35px #223d6110;
}

@keyframes access-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes learning-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

@media (min-width: 1600px) {
    .teacher-story { padding-left: max(86px, calc((100vw - 1320px) / 2)); }
}

@media (min-width: 901px) and (max-height: 760px) {
    .teacher-story { padding-top: 30px; }
    .teacher-story-copy { padding-top: 40px; }
    .teacher-story-art { max-width: 390px; margin-top: 12px; }
    .teacher-signin { padding-top: 32px; padding-bottom: 30px; }
    .teacher-student-link { margin-top: 25px; padding-top: 18px; padding-bottom: 18px; }
}

@media (max-width: 1100px) {
    .teacher-story { padding-left: 35px; padding-right: 35px; }
    .teacher-signin { padding-left: 40px; padding-right: 40px; }
    .teacher-story h1 { font-size: 56px; }
    .student-access-page .is-empty .public-result-intro { column-gap: 25px; }
    .student-index-row { grid-template-columns: minmax(0, 1fr); }
    .student-submit { min-height: 52px; }
}

@media (max-width: 980px) {
    .student-access-page .public-result-stage.has-result {
        grid-template-columns: minmax(0, 1fr);
        width: min(760px, 100%);
        row-gap: 22px;
    }
    .student-access-page .has-result .public-result-intro { position: static; }
    .student-access-page .has-result .student-index-row { grid-template-columns: minmax(0, 1fr) auto; }
    .student-access-page .has-result .student-search-form h2 { margin-bottom: 18px; }
}

@media (max-width: 760px) {
    .teacher-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .teacher-story { padding: 23px 26px; }
    .teacher-story-copy,
    .teacher-story-art,
    .teacher-story-footer { display: none; }
    .teacher-signin { padding: 34px 26px 27px; align-items: start; }
    .teacher-form-wrap { max-width: 420px; }
    .teacher-form-heading .access-kicker { margin-bottom: 12px; font-size: 10px; }
    .teacher-form-heading h2 { font-size: 34px; }
    .teacher-form-heading > p:last-child { margin: 11px 0 22px; font-size: 13px; }
    .teacher-form input { font-size: 16px; }
    .teacher-form label { margin-top: 8px; }
    .teacher-student-link { margin-top: 27px; padding: 20px 0; }
    .teacher-powered.login-powered-by { margin-top: 22px; }
    .student-access-main { padding: 24px 24px 18px; }
    .student-access-page .public-result-stage.is-empty { min-height: calc(100svh - 42px); }
    .student-access-page .public-result-nav { padding-bottom: 18px; gap: 14px; align-items: center; }
    .student-brand .access-brand-mark { width: 38px; height: 42px; flex-basis: 38px; font-size: 24px; }
    .student-brand { gap: 9px; }
    .student-brand strong { font-size: 12px; }
    .student-brand small { font-size: 10px; }
    .student-access-page .public-result-back { font-size: 10px; gap: 4px; padding-left: 0; }
    .student-access-page .public-result-back .access-arrow { width: 16px; flex-basis: 16px; }
    .student-access-page .is-empty .public-result-intro { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 23px; padding: 36px 0 25px; }
    .student-intro-copy .access-kicker { font-size: 9px; margin-bottom: 15px; }
    .student-intro-copy h1 { font-size: clamp(42px, 8vw, 58px); }
    .student-intro-copy > p:last-child { max-width: 340px; margin-top: 16px; font-size: 14px; }
    .student-index-row { grid-template-columns: minmax(0, 1fr) auto; }
    .student-hero-art { grid-column: 1; grid-row: 3; }
    .student-hero-art img { width: auto; max-width: 100%; max-height: 190px; }
    .student-hero-art > span { font-size: 10px; margin-top: 4px; }
    .student-portal-footer { align-items: center; text-align: center; flex-direction: column; gap: 12px; padding-top: 16px; }
    .student-powered .login-powered-copy { font-size: 9px; }
    .student-powered .login-powered-copy strong { font-size: 10px; }
    .student-access-page .available-exams { padding: 24px 22px; }
    .student-access-page .available-exam { gap: 10px; padding: 20px 0; }
    .student-access-page .available-exam .btn.primary { margin-top: 4px; }
}

@media (max-width: 480px) {
    .teacher-story { padding: 21px 24px; }
    .teacher-brand .access-brand-mark { width: 40px; height: 43px; flex-basis: 40px; font-size: 26px; }
    .teacher-brand strong { font-size: 13px; }
    .teacher-brand small { font-size: 11px; }
    .teacher-signin { padding: 31px 24px 24px; }
    .teacher-form-heading h2 { font-size: 32px; }
    .teacher-student-link { margin-top: 25px; padding-top: 18px; padding-bottom: 18px; }
    .teacher-student-link a { font-size: 13px; gap: 8px; }
    .teacher-powered .login-powered-copy { font-size: 9px; gap: 4px; }
    .teacher-powered .login-powered-copy strong { font-size: 10px; }
    .student-access-main { padding: 20px 21px 17px; }
    .student-access-page .public-result-nav { gap: 9px; }
    .student-access-page .public-result-back { max-width: 80px; font-size: 10px; line-height: 1.4; }
    .student-access-page .public-result-back .access-arrow { display: none; }
    .student-brand strong { font-size: 11px; }
    .student-brand small { font-size: 10px; }
    .student-brand .access-brand-mark { width: 35px; height: 39px; flex-basis: 35px; }
    .student-intro-copy h1 { font-size: 46px; }
    .student-access-page .is-empty .public-result-intro { padding-top: 32px; row-gap: 24px; }
    .student-index-row,
    .student-access-page .has-result .student-index-row { grid-template-columns: minmax(0, 1fr); }
    .student-index-row input { height: 56px; font-size: 18px; }
    .student-submit { min-height: 52px; font-size: 14px; }
    .student-search-help { margin-top: 10px; font-size: 10px; }
    .student-hero-art img { max-height: 160px; }
    .student-hero-art > span { font-size: 9px; }
    .student-access-page .has-result .public-result-intro { padding: 24px 20px; }
    .student-access-page .available-exams { padding: 24px 20px; }
    .student-access-page .available-exams h2 { font-size: 25px; }
    .student-portal-footer > span { max-width: 260px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .teacher-access-page *,
    .student-access-page * {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .student-portal-footer { display: none !important; }
    .student-access-page { background: #fff; }
    .student-access-main { display: block; padding: 0; min-height: 0; }
    .student-access-page .public-result-stage.has-result { display: block; width: 100%; padding: 0; }
    .student-access-page .student-result-sheet { box-shadow: none; }
}
