:root {
    --teacher-signup-blue: #1f8fd1;
    --teacher-signup-blue-dark: #155f91;
    --teacher-signup-sky: #eaf7ff;
    --teacher-signup-green: #42b883;
    --teacher-signup-orange: #f58b0a;
    --teacher-signup-yellow: #ffe066;
    --teacher-signup-text: #1f2d3d;
    --teacher-signup-muted: #5f6f7f;
    --teacher-signup-border: #cfe8f6;
    --teacher-signup-error: #a61b1b;
    --teacher-signup-error-bg: #fff2f2;
    --teacher-signup-success: #126641;
}

* { box-sizing: border-box; }

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--teacher-signup-text);
    background: #f8fcff;
    font-family: Arial, "Noto Sans Hebrew", sans-serif;
    line-height: 1.55;
}

.teacher-signup-container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.teacher-signup-site-header {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--teacher-signup-border);
    box-shadow: 0 6px 18px rgba(21, 95, 145, .06);
}

.teacher-signup-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.teacher-signup-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--teacher-signup-blue-dark);
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -.025em;
}

.teacher-signup-logo span {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--teacher-signup-blue), var(--teacher-signup-green));
    box-shadow: 0 7px 16px rgba(31, 143, 209, .22);
}

.teacher-signup-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-inline-start: auto;
}

.teacher-signup-nav a,
.teacher-signup-language a,
.teacher-signup-nav-form button {
    color: var(--teacher-signup-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.teacher-signup-nav-form { margin: 0; }

.teacher-signup-nav-form button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.teacher-signup-nav a:hover,
.teacher-signup-language a:hover,
.teacher-signup-nav a:focus-visible,
.teacher-signup-language a:focus-visible,
.teacher-signup-nav-form button:hover,
.teacher-signup-nav-form button:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.teacher-signup-language {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--teacher-signup-border);
    border-radius: 999px;
    background: #fff;
}

.teacher-signup-language a {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 13px;
}

.teacher-signup-language a[aria-current="page"] {
    color: #fff;
    background: var(--teacher-signup-blue-dark);
}

.teacher-signup-page {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: calc(100vh - 150px);
    padding: 54px 16px 72px;
    background:
        radial-gradient(circle at 8% 12%, rgba(66, 184, 131, .18), transparent 22rem),
        radial-gradient(circle at 92% 8%, rgba(255, 224, 102, .45), transparent 24rem),
        linear-gradient(180deg, #fafeff 0%, var(--teacher-signup-sky) 100%);
}

.teacher-signup-page-compact {
    display: grid;
    place-items: center;
}

.teacher-signup-decoration {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 34px;
    pointer-events: none;
}

.teacher-signup-decoration-one {
    inset-block-start: 16%;
    inset-inline-start: -70px;
    background: rgba(31, 143, 209, .12);
    transform: rotate(20deg);
}

.teacher-signup-decoration-two {
    inset-block-end: 9%;
    inset-inline-end: -54px;
    background: rgba(255, 159, 28, .16);
    transform: rotate(-14deg);
}

.teacher-signup-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    min-width: 0;
    margin-inline: auto;
}

.teacher-signup-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid var(--teacher-signup-border);
    border-radius: 30px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 44px rgba(31, 143, 209, .15);
}

.teacher-signup-card-compact {
    max-width: 570px;
    margin-inline: auto;
}

.teacher-signup-card-heading {
    max-width: 660px;
    margin: 0 auto 26px;
    text-align: center;
}

.teacher-signup-mark {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    margin-block-end: 10px;
    border-radius: 16px;
    color: #714900;
    background: var(--teacher-signup-yellow);
    font-size: 23px;
    font-weight: 900;
}

.teacher-signup-card-heading h1,
.teacher-signup-legal h1 {
    margin: 0 0 10px;
    color: var(--teacher-signup-blue-dark);
    font-size: clamp(30px, 5vw, 43px);
    line-height: 1.17;
    letter-spacing: -.025em;
}

.teacher-signup-card-heading p,
.teacher-signup-legal p {
    margin: 0;
    color: var(--teacher-signup-muted);
    font-size: 18px;
}

.teacher-signup-required-note {
    margin: 0 0 16px;
    color: var(--teacher-signup-muted);
    font-size: 14px;
}

.teacher-signup-alert {
    margin-block-end: 20px;
    padding: 14px 16px;
    border: 2px solid;
    border-radius: 15px;
}

.teacher-signup-alert:focus { outline: 3px solid rgba(31, 143, 209, .32); }
.teacher-signup-alert ul { margin: 7px 0 0; padding-inline-start: 22px; }
.teacher-signup-alert-error { color: var(--teacher-signup-error); border-color: #e5a0a0; background: var(--teacher-signup-error-bg); }
.teacher-signup-alert-error a { color: inherit; }
.teacher-signup-alert-success { color: var(--teacher-signup-success); border-color: #87cfad; background: #effcf5; }

.teacher-signup-form {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.teacher-signup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.teacher-signup-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.teacher-signup-field-wide { margin-block-start: 20px; }

.teacher-signup-field label,
.teacher-signup-terms label {
    color: var(--teacher-signup-text);
    font-weight: 800;
}

.teacher-signup-optional {
    display: inline-block;
    margin-inline-start: 5px;
    color: var(--teacher-signup-muted);
    font-size: 12px;
    font-weight: 500;
}

.teacher-signup-field input,
.teacher-signup-field select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 50px;
    padding-inline: 14px;
    border: 2px solid #c8dce7;
    border-radius: 13px;
    color: var(--teacher-signup-text);
    background: #fff;
    font: inherit;
    text-align: start;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.teacher-signup-field input:focus,
.teacher-signup-field select:focus {
    border-color: var(--teacher-signup-blue);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(31, 143, 209, .16);
}

.teacher-signup-field input[aria-invalid="true"],
.teacher-signup-field select[aria-invalid="true"] {
    border-color: var(--teacher-signup-error);
    background-image: linear-gradient(45deg, transparent 45%, var(--teacher-signup-error) 45%, var(--teacher-signup-error) 55%, transparent 55%);
    background-position: calc(100% - 14px) 15px;
    background-repeat: no-repeat;
    background-size: 9px 9px;
}

[dir="rtl"] .teacher-signup-field input[aria-invalid="true"],
[dir="rtl"] .teacher-signup-field select[aria-invalid="true"] {
    background-position: 14px 15px;
}

.teacher-signup-field-error {
    display: block;
    color: var(--teacher-signup-error);
    font-size: 14px;
    font-weight: 700;
}

.teacher-signup-password-wrap { position: relative; }
.teacher-signup-password-wrap input { padding-inline-end: 126px; }

.teacher-signup-password-toggle {
    position: absolute;
    inset-block: 7px;
    inset-inline-end: 7px;
    min-width: 104px;
    padding-inline: 10px;
    border: 0;
    border-radius: 9px;
    color: var(--teacher-signup-blue-dark);
    background: var(--teacher-signup-sky);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.teacher-signup-password-toggle:focus-visible,
.teacher-signup-submit:focus-visible,
.teacher-signup-terms input:focus-visible {
    outline: 3px solid rgba(31, 143, 209, .42);
    outline-offset: 2px;
}

.teacher-signup-terms {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 11px;
    align-items: start;
    margin-block: 24px;
    padding: 15px;
    border: 1px solid var(--teacher-signup-border);
    border-radius: 14px;
    background: #f8fcff;
}

.teacher-signup-terms input {
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: var(--teacher-signup-green);
}

.teacher-signup-terms a,
.teacher-signup-signin-link a,
.teacher-signup-site-footer a { color: var(--teacher-signup-blue-dark); font-weight: 800; }
.teacher-signup-terms .teacher-signup-field-error { grid-column: 2; }
.teacher-signup-has-error { border: 2px solid var(--teacher-signup-error); background: var(--teacher-signup-error-bg); }

.teacher-signup-submit {
    width: 100%;
    min-height: 54px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    color: #442700;
    background: linear-gradient(135deg, var(--teacher-signup-orange), #ffab2e);
    box-shadow: 0 11px 24px rgba(245, 139, 10, .27);
    font: inherit;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.teacher-signup-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(245, 139, 10, .34); }

.teacher-signup-signin-link {
    margin: 22px 0 0;
    text-align: center;
    color: var(--teacher-signup-muted);
}

.teacher-signup-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.teacher-signup-site-footer {
    padding: 24px 0;
    color: var(--teacher-signup-muted);
    background: #fff;
    border-top: 1px solid var(--teacher-signup-border);
}

.teacher-signup-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
    font-size: 14px;
}

.teacher-signup-legal {
    width: min(760px, 100%);
    margin-inline: auto;
}

@media (max-width: 720px) {
    .teacher-signup-header-inner { flex-direction: column; gap: 10px; padding-block: 12px; }
    .teacher-signup-nav { order: 3; width: 100%; justify-content: center; }
    .teacher-signup-language { margin-inline-start: 0; flex-wrap: wrap; justify-content: center; }
    .teacher-signup-page { padding: 34px 12px 50px; }
    .teacher-signup-shell,
    .teacher-signup-card { width: 100%; max-width: 100%; min-width: 0; }
    .teacher-signup-grid { grid-template-columns: minmax(0, 1fr); }
    .teacher-signup-card { padding: 25px 18px; border-radius: 23px; }
    .teacher-signup-card-heading h1 { overflow-wrap: anywhere; }
    .teacher-signup-card-heading p { font-size: 16px; }
    .teacher-signup-footer-inner { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
    .teacher-signup-logo { font-size: 20px; }
    .teacher-signup-logo span { width: 35px; height: 35px; border-radius: 12px; }
    .teacher-signup-language a { padding-inline: 7px; font-size: 12px; }
    .teacher-signup-password-wrap input { padding-inline-end: 103px; }
    .teacher-signup-password-toggle { min-width: 86px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
