.mrga-teacher-pilot-page{margin:0;background:#f8fbff;color:#0f172a}
.mrga-teacher-pilot-page *{box-sizing:border-box}
.mrga-teacher-pilot{max-width:680px;margin:clamp(24px,8vh,100px) auto;padding:24px;background:#fff;border:1px solid #bfdbfe;border-radius:20px}
.mrga-teacher-pilot__eyebrow{font-size:14px;font-weight:700;color:#1d4ed8;letter-spacing:.1em;text-transform:uppercase}
.mrga-teacher-pilot h1{font-size:clamp(28px,4vw,42px);line-height:1.2;letter-spacing:-.03em;margin:16px 0}
.mrga-teacher-pilot__actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:28px}
.mrga-teacher-pilot__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border:1px solid #bfdbfe;border-radius:10px;color:#1d4ed8;text-decoration:none;font-weight:650}
.mrga-teacher-pilot__actions .mrga-teacher-pilot__primary{background:#2563eb;border-color:#2563eb;color:#fff}
.mrga-teacher-pilot-page a:focus-visible{outline:3px solid #2563eb;outline-offset:4px}
.mrga-teacher-pilot-page input,.mrga-teacher-pilot-page select,.mrga-teacher-pilot-page textarea{font-size:16px}
.mrga-teacher-pilot-page.mrga-auth-portal-page .mrga-register__brand-content{grid-template-columns:minmax(0,1fr)}
.mrga-teacher-pilot-page.mrga-auth-portal-page .mrga-register__brand-copy p{white-space:normal}
@media(hover:hover) and (pointer:fine){.mrga-teacher-pilot__actions a:hover{box-shadow:0 3px 10px #2563eb1a}}
@media(max-width:1024px){.mrga-teacher-pilot{padding:18px}}
@media(max-width:767px){.mrga-teacher-pilot{margin:24px 16px;padding:16px}.mrga-teacher-pilot__actions{flex-direction:column}.mrga-teacher-pilot__actions a{width:100%}}

/* Teacher entry refinements stay outside shared learner authentication layouts. */
@media (min-width:768px) {
    body.mrga-teacher-pilot-page .mrga-teacher-pilot { margin: 32px auto; }
    body.mrga-teacher-pilot-page .mrga-teacher-pilot h1 { font-size: 32px; }
    body.mrga-teacher-pilot-page .mrga-teacher-pilot__actions { margin-top: 24px; }
    body.mrga-teacher-pilot-page .mrga-teacher-pilot__actions a { min-height: 44px; padding: 10px 18px; }
}
@media (min-width:768px) and (max-width:1100px) {
    body.mrga-teacher-pilot-page .mrga-teacher-pilot { padding: 18px; }
    body.mrga-teacher-pilot-page .mrga-teacher-pilot h1 { font-size: 28px; }

    /* Tablet registration can outgrow the viewport beneath the fixed shared header. */
    body.mrga-teacher-pilot-page.mrga-register-page-body:not(.mrg-menu-open):not(.mrg-install-guide-open) {
        overflow-y: auto;
    }

    .mrga-teacher-pilot-page.mrg-fixed-header-scroll .mrga-register-page {
        padding-top: calc(var(--mrg-admin-bar-height, 0px) + var(--mrg-header-height, 61px));
    }

    .mrga-teacher-pilot-page .mrga-register__layout {
        overflow: visible;
    }

    .mrga-teacher-pilot-page .mrga-register__panel--form {
        align-items: flex-start;
    }

    .mrga-teacher-pilot-page .mrga-register__card {
        margin-block: auto;
    }
}

/* Shared hover/focus effects must not persist after a teacher taps a control. */
@media (hover: none), (pointer: coarse) {
    .mrga-teacher-pilot-page :is(.mrga-login__toggle, .mrga-register__toggle):not(:focus-visible):not(:active) {
        background: transparent;
        color: #667085;
    }

    .mrga-teacher-pilot-page :is(.mrga-login__submit, .mrga-register__submit):not(:focus-visible):not(:active) {
        background: var(--mrga-primary);
        box-shadow: 0 12px 24px rgba(124, 58, 237, 0.24);
        transform: none;
    }

    .mrga-teacher-pilot-page :is(.mrga-social__btn, .mrga-register__google):not(:focus-visible):not(:active) {
        transform: none;
    }

    .mrga-teacher-pilot-page .mrga-social__btn--google:not(:focus-visible):not(:active) {
        background: linear-gradient(180deg, #fffffd 0%, #fbfcff 100%);
        border-color: rgba(202, 211, 226, 0.95);
        box-shadow: 0 1px 2px rgba(16, 9, 34, 0.04), inset 0 1px 0 rgba(255, 255, 253, 0.95);
    }

    .mrga-teacher-pilot-page .mrga-social__btn--facebook:not(:focus-visible):not(:active) {
        background: #1877f2;
        border-color: #1877f2;
        box-shadow: 0 10px 22px rgba(24, 119, 242, 0.22);
    }

    .mrga-teacher-pilot-page .mrga-register__social--brand .mrga-register__google:not(:focus-visible):not(:active) {
        box-shadow: 0 12px 26px rgba(16, 9, 34, 0.18);
    }

    .mrga-teacher-pilot-page .mrga-login__resend:not(:focus-visible):not(:active) {
        border-color: rgba(124, 58, 237, 0.18);
        background: rgba(124, 58, 237, 0.04);
        color: var(--mrga-primary);
    }

    .mrga-teacher-pilot-page :is(.mrga-login__password-utility, .mrga-login__links, .mrga-register__login) a:not(:focus-visible):not(:active) {
        color: var(--mrga-primary);
        text-decoration: none;
    }
}
