:root {
    --ev-primary: #6655ff;
    --ev-primary-dark: #4f3df4;
    --ev-secondary: #00c2ff;
    --ev-accent: #ffb84d;
    --ev-ink: #172033;
    --ev-muted: #687386;
    --ev-line: #e6e9f1;
    --ev-card: rgba(255, 255, 255, .92);
    --ev-radius-xl: 34px;
    --ev-shadow: 0 30px 90px rgba(48, 56, 96, .18);
}

* {
    box-sizing: border-box;
}

body.register-page {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ev-ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(0, 194, 255, .20), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(102, 85, 255, .22), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #fbf7ff 46%, #f6f8ff 100%);
    overflow-x: hidden;
}

.register-bg-orb {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(35px);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}

.register-bg-orb-1 {
    left: -120px;
    bottom: 10%;
    background: linear-gradient(135deg, rgba(0, 194, 255, .35), rgba(102, 85, 255, .16));
}

.register-bg-orb-2 {
    right: -130px;
    top: 5%;
    background: linear-gradient(135deg, rgba(255, 184, 77, .24), rgba(102, 85, 255, .22));
}

.register-shell {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 64px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 56px 0;
}

.register-card {
    width: 100%;
    background: var(--ev-card);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--ev-radius-xl);
    box-shadow: var(--ev-shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.register-card-teacher {
    display: grid;
    grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr);
}

.register-hero-panel {
    position: relative;
    min-height: 680px;
    padding: 46px;
    color: white;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .28), transparent 22%),
        radial-gradient(circle at 82% 12%, rgba(255, 184, 77, .52), transparent 20%),
        linear-gradient(145deg, #6d5cff 0%, #5441f2 48%, #151d35 100%);
    overflow: hidden;
}

.register-hero-panel:before,
.register-hero-panel:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.register-hero-panel:before {
    width: 260px;
    height: 260px;
    right: -70px;
    bottom: 110px;
}

.register-hero-panel:after {
    width: 170px;
    height: 170px;
    left: -50px;
    bottom: -30px;
}

.register-logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: white;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.02em;
    font-size: 1.18rem;
}

.register-logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    font-weight: 1000;
}

.register-hero-content {
    position: relative;
    z-index: 1;
    margin-top: 90px;
}

.register-badge,
.register-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    font-size: .86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.register-hero-content h1 {
    max-width: 560px;
    margin: 24px 0 18px;
    font-size: clamp(2.35rem, 4vw, 4.8rem);
    line-height: .95;
    letter-spacing: -.07em;
}

.register-hero-content p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
    line-height: 1.62;
}

.register-benefits {
    display: grid;
    gap: 14px;
    margin-top: 42px;
}

.register-benefit {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-areas:
        "icon title"
        "icon text";
    gap: 2px 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.register-benefit > span {
    grid-area: icon;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .17);
    font-size: 1.25rem;
}

.register-benefit strong {
    grid-area: title;
    font-size: .98rem;
}

.register-benefit small {
    grid-area: text;
    color: rgba(255, 255, 255, .74);
    line-height: 1.35;
}

.register-form-panel {
    padding: clamp(34px, 5vw, 70px);
}

.register-form-head {
    margin-bottom: 28px;
}

.register-kicker {
    color: var(--ev-primary-dark);
    background: rgba(102, 85, 255, .10);
    box-shadow: none;
}

.register-form-head h2 {
    margin: 18px 0 8px;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.register-form-head p {
    margin: 0;
    color: var(--ev-muted);
    line-height: 1.5;
}

.register-error {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff1f1;
    color: #c8273a;
    font-weight: 800;
}

.register-form {
    display: grid;
    gap: 18px;
}

.register-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: .9rem;
    font-weight: 900;
    color: var(--ev-ink);
}

.form-group label span {
    color: var(--ev-muted);
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid var(--ev-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    color: var(--ev-ink);
    font: inherit;
    font-weight: 750;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.form-group input::placeholder {
    color: #a2aabd;
    font-weight: 650;
}

.form-group input:focus {
    border-color: rgba(102, 85, 255, .7);
    box-shadow: 0 0 0 5px rgba(102, 85, 255, .12);
    transform: translateY(-1px);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ev-muted);
    font-size: .95rem;
    line-height: 1.35;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--ev-primary);
}

.checkbox-row a,
.register-footer a {
    color: var(--ev-primary-dark);
    font-weight: 900;
    text-decoration: none;
}

.checkbox-row a:hover,
.register-footer a:hover {
    text-decoration: underline;
}

.register-submit {
    min-height: 62px;
    margin-top: 8px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ev-primary) 0%, #7a60ff 55%, var(--ev-secondary) 135%);
    color: white;
    font: inherit;
    font-size: 1.04rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(102, 85, 255, .28);
    transition: transform .18s ease, box-shadow .18s ease;
}

.register-submit span {
    display: inline-block;
    margin-left: 8px;
    transition: transform .18s ease;
}

.register-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(102, 85, 255, .36);
}

.register-submit:hover span {
    transform: translateX(3px);
}

.register-footer {
    text-align: center;
    color: var(--ev-muted);
    font-size: .96rem;
}

@media (max-width: 980px) {
    .register-shell {
        width: min(100% - 28px, 720px);
        padding: 28px 0;
    }

    .register-card-teacher {
        grid-template-columns: 1fr;
    }

    .register-hero-panel {
        min-height: auto;
        padding: 34px;
    }

    .register-hero-content {
        margin-top: 42px;
    }

    .register-benefits {
        grid-template-columns: 1fr;
    }

    .register-form-panel {
        padding: 34px;
    }
}

@media (max-width: 640px) {
    .register-shell {
        width: 100%;
        padding: 0;
    }

    .register-card {
        min-height: 100vh;
        border-radius: 0;
    }

    .register-hero-panel {
        padding: 26px 22px;
    }

    .register-hero-content h1 {
        font-size: 2.35rem;
    }

    .register-form-panel {
        padding: 28px 20px 34px;
    }

    .register-grid-2 {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .register-submit {
        min-height: 56px;
    }
}


.register-logo-clean {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 1000;
    letter-spacing: -.06em;
}

.register-logo-clean span {
    display: inline-block;
}

.register-beta-note {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    color: rgba(255,255,255,.66);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .01em;
}


/* Teacher register typography refinement */
.teacher-register-page .register-hero-content {
    margin-top: 78px;
}

.teacher-register-page .register-hero-content h1 {
    max-width: 610px;
    font-size: clamp(3.15rem, 5.4vw, 5.75rem);
    line-height: .91;    font-weight: 850;
    text-wrap: balance;
}

.teacher-register-page .register-hero-content p {
    max-width: 620px;
    font-size: 1.04rem;
    line-height: 1.55;
    color: rgba(255,255,255,.78);
}

.teacher-register-page .register-logo-clean {
    font-size: clamp(1.95rem, 2.5vw, 2.45rem);
    font-weight: 850;}

.teacher-register-page .register-badge {
    letter-spacing: .095em;
}

.teacher-register-page .register-benefits {
    margin-top: 54px;
    gap: 18px;
}

.teacher-register-page .register-benefit {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .105);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .16),
        0 16px 35px rgba(10, 16, 45, .10);
    backdrop-filter: blur(10px);
}

.teacher-register-page .register-benefit strong {
    font-size: 1.02rem;}

.teacher-register-page .register-benefit small {
    font-size: .93rem;
}

@media (max-width: 1280px) {
    .teacher-register-page .register-hero-content h1 {
        font-size: clamp(3rem, 5vw, 4.85rem);
        max-width: 540px;
    }
}

@media (max-width: 980px) {
    .teacher-register-page .register-hero-content {
        margin-top: 46px;
    }

    .teacher-register-page .register-hero-content h1 {
        font-size: clamp(2.7rem, 8vw, 4.4rem);
        max-width: 680px;
    }
}

@media (max-width: 640px) {
    .teacher-register-page .register-hero-content h1 {
        font-size: clamp(2.45rem, 12vw, 3.65rem);    }
}


/* Teacher register: neutralize over-tight lettering */
.teacher-register-page .register-hero-content h1,
.teacher-register-page .register-logo-clean,
.teacher-register-page .register-logo-clean span {
    letter-spacing: normal;
}
