:root {
    --tk-deep: #063a2a;
    --tk-deep-2: #073d4d;
    --tk-ink: #0b352d;
    --tk-muted: #698078;
    --tk-line: #d9e5df;
    --tk-lime: #c9eb00;
    --tk-blue: #0798ef;
    --tk-orange: #f07900;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--tk-ink);
}

body.page-login {
    min-height: 100vh;
    background: linear-gradient(135deg, #f3f8f5 0%, #eef6f2 45%, #f7faf8 100%);
}

.teacher-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 24px;
}

.teacher-login-shell {
    width: min(1120px, 100%);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(8, 47, 47, .14);
    overflow: hidden;
}

.teacher-login-body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    align-items: stretch;
    min-height: 600px;
}

.teacher-login-intro {
    display: flex;
    flex-direction: column;
    padding: 48px 44px;
    background: linear-gradient(135deg, var(--tk-deep), var(--tk-deep-2));
    color: #fff;
}

.teacher-login-intro .kicker {
    display: block;
    order: 2;
    margin: 0 0 20px;
    line-height: 1.45;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.teacher-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 1;
    margin-bottom: 20px;
    color: #fff;
    text-decoration: none;
}

.teacher-login-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.teacher-login-brand strong {
    display: block;
    color: var(--tk-blue);
    font-size: 20px;
    font-weight: 800;
}

.teacher-login-brand small {
    display: block;
    margin-top: 4px;
    color: var(--tk-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.teacher-login-intro h1 {
    order: 3;
    margin: 0;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.08;
}

.teacher-login-intro p {
    order: 4;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.75;
}

.teacher-login-benefits {
    order: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.teacher-login-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 700;
}

.teacher-login-benefits svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--tk-lime);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.teacher-login-card {
    display: flex;
    flex-direction: column;
    padding: 42px 44px 40px;
    background: #fff;
}

.teacher-login-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.teacher-login-card-head {
    flex: 1;
    min-width: 0;
}

.teacher-login-kicker {
    display: block;
    color: var(--tk-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.teacher-login-card-head strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(18px, 1.9vw, 24px);
    line-height: 1.25;
}

.teacher-login-site-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px 0 16px;
    border-radius: 12px;
    background: #f3f8f6;
    color: var(--tk-ink);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.teacher-login-site-link:hover {
    background: #e8f3ef;
    box-shadow: 0 8px 22px rgba(8, 47, 47, .08);
    transform: translateY(-1px);
}

.teacher-login-site-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--tk-blue);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.teacher-login-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 650;
    line-height: 1.5;
}

.teacher-login-alert.is-error {
    border: 1px solid #f1c2bf;
    background: #fff4f3;
    color: #b42318;
}

.teacher-login-alert.is-success {
    border: 1px solid #b8e3c8;
    background: #f2fbf5;
    color: #1f7a43;
}

.teacher-login-form {
    display: grid;
    gap: 18px;
}

.teacher-login-form.is-hidden {
    display: none;
}

.teacher-login-field {
    display: grid;
    gap: 8px;
    font-weight: 750;
}

.teacher-login-field > span:first-child {
    color: var(--tk-ink);
    font-size: 14px;
}

.teacher-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.teacher-login-input-wrap svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #7a8f88;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.teacher-login-input-wrap input {
    width: 100%;
    min-height: 52px;
    padding: 0 14px 0 44px;
    border: 1px solid var(--tk-line);
    border-radius: 14px;
    background: #fbfcfb;
    color: var(--tk-ink);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.teacher-login-input-wrap input:focus {
    outline: none;
    border-color: #8fd0fb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 150, 243, .12);
}

.teacher-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: -4px;
}

.teacher-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tk-muted);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.teacher-login-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--tk-deep);
}

.teacher-login-forgot,
.teacher-login-back {
    border: 0;
    background: transparent;
    color: var(--tk-blue);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.teacher-login-forgot:hover,
.teacher-login-back:hover {
    color: #0578c0;
}

.teacher-login-submit {
    min-height: 54px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tk-deep), var(--tk-deep-2));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.teacher-login-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.teacher-login-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.teacher-login-back {
    justify-self: center;
    margin-top: -4px;
    text-decoration: none;
}

.teacher-login-help {
    margin: 16px 0 0;
    color: var(--tk-muted);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .teacher-login-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .teacher-login-intro,
    .teacher-login-card {
        padding: 32px 24px;
    }

    .teacher-login-site-link {
        font-size: 11px;
        padding: 0 10px 0 12px;
    }
}
