:root {
    --navy: #061c36;
    --navy-2: #082b54;
    --navy-3: #0d4478;
    --cyan: #18b9ed;
    --cyan-2: #45dce8;
    --red: #cf2035;
    --red-dark: #aa1528;
    --green: #159f63;
    --text: #0b2443;
    --muted: #75839a;
    --border: #dce6f0;
    --soft: #f6f9fc;
    --shadow: 0 22px 60px rgba(9, 37, 70, .14);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.teacher-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(560px, 1.05fr) minmax(520px, .95fr);
}

/* =========================================================
   PANEL IZQUIERDO
========================================================= */
.teacher-login-brand {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: #071f3b;
}

.brand-bg {
    position: absolute;
    inset: 0;
    z-index: -5;
    background:
        url('/Public/assets/img/docente/plantel34-login.jpg') center/cover no-repeat,
        linear-gradient(145deg, #0a3968, #05182e);
    transform: scale(1.02);
}

.brand-overlay {
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        linear-gradient(90deg, rgba(2, 20, 40, .95) 0%, rgba(3, 28, 55, .82) 47%, rgba(3, 35, 67, .60) 100%),
        linear-gradient(180deg, rgba(6, 30, 58, .18), rgba(2, 18, 35, .77));
}

.teacher-login-brand::before {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    left: -320px;
    bottom: -420px;
    border: 1px solid rgba(65, 208, 237, .18);
    border-radius: 50%;
    z-index: -2;
}

.teacher-login-brand::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -265px;
    bottom: -270px;
    border: 1px solid rgba(255, 51, 79, .22);
    border-radius: 50%;
    z-index: -2;
}

.brand-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .18;
    z-index: -1;
}
.brand-glow-a { background: #14bdea; right: 7%; top: 10%; }
.brand-glow-b { background: #e5233f; right: -5%; bottom: 8%; }

.teacher-login-brand-inner {
    position: relative;
    min-height: 100vh;
    padding: clamp(34px, 4.2vw, 72px);
    display: flex;
    flex-direction: column;
}

.brand-header {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    width: fit-content;
}

.brand-logo-wrap {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 20px;
    background: rgba(7, 31, 59, .58);
    box-shadow: inset 0 0 0 5px rgba(255,255,255,.035);
    backdrop-filter: blur(12px);
}

.brand-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 14px;
    filter: drop-shadow(0 7px 14px rgba(0,0,0,.16));
}
.brand-name strong {
    display: block;
    font-size: clamp(.92rem, 1.45vw, 1.2rem);
    line-height: 1.15;
    letter-spacing: .035em;
}
.brand-name small {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.68);
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.brand-name b { color: #3bd2ea; }

.brand-main {
    width: min(100%, 690px);
    margin: auto 0 46px;
}

.brand-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff5165;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
}
.brand-eyebrow span { width: 44px; height: 3px; background: var(--red); border-radius: 999px; }
.brand-kicker {
    margin: 18px 0 0;
    font-size: 1rem;
    letter-spacing: .28em;
    color: rgba(255,255,255,.9);
}

.brand-main h1 {
    margin: 26px 0 0;
    font-size: clamp(4.3rem, 7vw, 7.7rem);
    line-height: .82;
    letter-spacing: -.07em;
    font-weight: 900;
}
.brand-main h1 span {
    display: block;
    margin-top: 15px;
    color: transparent;
    background: linear-gradient(100deg, #66d7ff 0%, #17b8ee 45%, #45e1dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-line {
    width: 54px;
    height: 4px;
    margin-top: 34px;
    border-radius: 999px;
    background: var(--red);
}

.brand-description {
    max-width: 590px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.7;
}

.feature-grid {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: auto;
    padding: 26px 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: rgba(2, 24, 48, .58);
    box-shadow: 0 28px 60px rgba(0,0,0,.17);
    backdrop-filter: blur(18px);
}

.feature-item {
    min-width: 0;
    padding: 3px 16px 2px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.11);
}
.feature-item:last-child { border-right: 0; }
.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    color: #1ec8f4;
}
.feature-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon.red-icon { color: #ff3854; }
.feature-icon.muted-icon { color: #dce7f2; }
.feature-item strong { display: block; font-size: .89rem; }
.feature-item span { display: block; margin-top: 7px; color: rgba(255,255,255,.62); font-size: .72rem; line-height: 1.55; }

.brand-footer {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 30px;
    color: rgba(255,255,255,.62);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.brand-footer i { width: 22px; height: 1px; background: rgba(255,255,255,.28); }

/* =========================================================
   PANEL DERECHO
========================================================= */
.teacher-login-form-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px clamp(28px, 5vw, 78px);
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 5%, rgba(36, 154, 224, .07), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.form-deco {
    position: absolute;
    width: 95px;
    height: 95px;
    opacity: .35;
    background-image: radial-gradient(#5aa9e1 1.7px, transparent 1.7px);
    background-size: 12px 12px;
}
.form-deco-top { right: 5%; top: 3%; }
.form-deco-bottom { right: 4%; bottom: 2%; }

.teacher-login-form-container {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
}

.login-logo-block {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    display: block;
    width: clamp(92px, 7.2vw, 116px);
    height: clamp(84px, 6.7vw, 106px);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(0 12px 24px rgba(8,43,84,.15));
}

.teacher-login-heading { text-align: center; }
.access-pill {
    width: fit-content;
    margin: 0 auto;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    background: #eaf4fc;
    color: #173f78;
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .12em;
}
.access-pill svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.teacher-login-heading h2 {
    margin: 24px 0 8px;
    color: #071d3a;
    font-size: clamp(2.35rem, 4vw, 3.55rem);
    line-height: 1;
    letter-spacing: -.055em;
}
.teacher-login-heading p { margin: 0 auto; max-width: 440px; color: var(--muted); font-size: .98rem; line-height: 1.55; }

.teacher-login-alert {
    margin-top: 24px;
    padding: 14px 16px;
    display: flex;
    gap: 11px;
    border: 1px solid #f1cbd1;
    border-radius: 14px;
    background: #fff5f6;
    color: #8c1d2d;
}
.alert-icon { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-weight: 900; }
.teacher-login-alert strong { display: block; font-size: .84rem; }
.teacher-login-alert p { margin: 3px 0 0; font-size: .8rem; line-height: 1.45; }

.teacher-login-form { margin-top: 34px; }
.teacher-form-group { margin-bottom: 22px; }
.teacher-form-group label {
    display: block;
    margin-bottom: 9px;
    color: #0b2343;
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.label-row { display: flex; align-items: center; justify-content: space-between; }

.input-shell {
    position: relative;
    height: 64px;
    display: flex;
    align-items: center;
    border: 1px solid #cfdbe8;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(13, 48, 83, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.input-shell:focus-within {
    border-color: #2b91da;
    box-shadow: 0 0 0 4px rgba(43,145,218,.10), 0 12px 28px rgba(13,48,83,.07);
}
.input-icon {
    width: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    color: #243a55;
}
.input-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.input-shell input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 18px 0 0;
    color: var(--text);
    background: transparent;
    font-size: .97rem;
}
.input-shell input::placeholder { color: #9ba9bb; }

.password-toggle {
    width: 52px;
    height: 52px;
    margin-right: 5px;
    border: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #38516c;
    cursor: pointer;
}
.password-toggle:hover { background: #f2f7fb; }
.password-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }

.login-options { margin: -2px 0 22px; }
.remember-option { display: inline-flex; align-items: center; gap: 10px; color: #53627a; font-size: .88rem; cursor: pointer; user-select: none; }
.remember-option input { position: absolute; opacity: 0; pointer-events: none; }
.fake-checkbox {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #aabbd0;
    border-radius: 6px;
    background: #fff;
    transition: .2s ease;
}
.remember-option input:checked + .fake-checkbox { border-color: var(--navy-2); background: var(--navy-2); }
.remember-option input:checked + .fake-checkbox::after { content: "✓"; color: #fff; font-size: .8rem; font-weight: 900; }

.teacher-login-button {
    position: relative;
    width: 100%;
    min-height: 64px;
    padding: 0 18px;
    border: 0;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    color: #fff;
    background: linear-gradient(100deg, #0a315e 0%, #163e72 46%, #d51f36 100%);
    cursor: pointer;
    box-shadow: 0 15px 34px rgba(16,49,89,.22);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.teacher-login-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.14) 46%, transparent 65%);
    transform: translateX(-110%);
    transition: transform .55s ease;
}
.teacher-login-button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(16,49,89,.27); }
.teacher-login-button:hover::before { transform: translateX(110%); }
.teacher-login-button strong { position: relative; z-index: 1; font-size: .82rem; letter-spacing: .1em; }
.button-arrow { position: relative; z-index: 1; justify-self: end; font-size: 1.35rem; transition: transform .2s ease; }
.teacher-login-button:hover .button-arrow { transform: translateX(4px); }
.button-icon { position: relative; z-index: 1; display: grid; place-items: center; opacity: .9; }
.button-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.security-card,
.teacher-login-help {
    margin-top: 28px;
    padding: 16px 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 14px;
}
.security-card { border: 1px solid #b9e0cb; background: #f5fcf8; }
.security-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--green); }
.security-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.security-card strong { display: block; color: #168450; font-size: .85rem; }
.security-card span { display: block; margin-top: 3px; color: #61736c; font-size: .78rem; }

.teacher-login-help { border: 1px solid #dce6f0; background: #fbfdff; }
.help-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid #abc0d8; border-radius: 50%; color: #2f5b94; font-weight: 900; }
.teacher-login-help p { margin: 0; color: #122f55; font-size: .88rem; font-weight: 800; }
.teacher-login-help span { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.access-divider {
    position: relative;
    margin: 34px 0 22px;
    text-align: center;
    color: #8492a5;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.access-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e0e8f0; }
.access-divider span { position: relative; padding: 0 14px; background: #fff; }

.teacher-back-link {
    width: fit-content;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #234a79;
    font-size: .8rem;
    font-weight: 700;
}
.teacher-back-link span { font-size: 1.2rem; transition: transform .2s ease; }
.teacher-back-link:hover span { transform: translateX(-3px); }

.login-footer { margin-top: 40px; text-align: center; color: #6f7e91; }
.login-footer p { margin: 0; font-size: .74rem; }
.login-footer strong { display: block; margin-top: 2px; color: #163255; font-size: .78rem; }
.footer-status { margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 9px; font-size: .69rem; }
.footer-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.status-safe { color: #20915e; }
.login-footer small { display: block; margin-top: 20px; font-size: .67rem; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1180px) {
    .teacher-login { grid-template-columns: 1fr 1fr; }
    .teacher-login-brand-inner { padding: 40px; }
    .brand-main h1 { font-size: clamp(4rem, 6vw, 5.8rem); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .feature-item:nth-child(2) { border-right: 0; }
    .feature-item:nth-child(-n+2) { padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.10); }
}

@media (max-width: 920px) {
    .teacher-login { grid-template-columns: 1fr; }
    .teacher-login-brand { min-height: auto; }
    .teacher-login-brand-inner { min-height: auto; padding: 32px 28px 38px; }
    .brand-main { margin: 58px 0 34px; }
    .brand-main h1 { font-size: clamp(3.8rem, 11vw, 6rem); }
    .brand-description { max-width: 650px; }
    .feature-grid { margin-top: 12px; }
    .brand-footer { margin-top: 24px; }
    .teacher-login-form-section { min-height: auto; padding: 56px 24px 64px; }
}

@media (max-width: 620px) {
    .teacher-login-brand-inner { padding: 24px 20px 28px; }
    .brand-header { gap: 12px; }
    .brand-logo-wrap { width: 58px; height: 58px; border-radius: 16px; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-name strong { font-size: .82rem; }
    .brand-name small { font-size: .63rem; letter-spacing: .08em; }

    .brand-main { margin: 46px 0 28px; }
    .brand-eyebrow { font-size: .66rem; letter-spacing: .11em; }
    .brand-kicker { font-size: .82rem; letter-spacing: .2em; }
    .brand-main h1 { font-size: clamp(3.35rem, 16vw, 5rem); }
    .brand-description { font-size: .93rem; }

    .feature-grid { grid-template-columns: 1fr 1fr; padding: 20px 8px; border-radius: 18px; }
    .feature-item { padding: 2px 10px; }
    .feature-item strong { font-size: .78rem; }
    .feature-item span { font-size: .66rem; }
    .feature-icon { width: 40px; height: 40px; }
    .feature-icon svg { width: 34px; height: 34px; }
    .brand-footer { flex-wrap: wrap; gap: 10px; font-size: .6rem; }

    .teacher-login-form-section { padding: 45px 18px 50px; }
    .login-logo { width: 68px; height: 68px; }
    .teacher-login-heading h2 { font-size: 2.45rem; }
    .input-shell { height: 58px; }
    .input-icon { width: 52px; flex-basis: 52px; }
    .teacher-login-button { min-height: 60px; }
    .security-card, .teacher-login-help { align-items: flex-start; }
}

@media (max-width: 420px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .teacher-login-form-section { padding-left: 14px; padding-right: 14px; }
    .access-pill { font-size: .66rem; }
    .teacher-login-heading h2 { font-size: 2.15rem; }
    .teacher-login-heading p { font-size: .9rem; }
    .teacher-login-button strong { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   COBACH 34 · SISTEMA INSTITUCIONAL 2026
   Capas ejecutivas: luz, partículas, reloj y transición
========================================================= */
.brand-light-sweep {
    position: absolute;
    inset: -30% -40%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(112deg,
        transparent 38%,
        rgba(66, 214, 244, .035) 44%,
        rgba(255,255,255,.11) 49%,
        rgba(66, 214, 244, .04) 54%,
        transparent 61%);
    transform: translateX(-45%) rotate(2deg);
    animation: institutionalSweep 11s ease-in-out infinite;
}

@keyframes institutionalSweep {
    0%, 15% { transform: translateX(-48%) rotate(2deg); opacity: 0; }
    28% { opacity: .85; }
    58% { transform: translateX(48%) rotate(2deg); opacity: .8; }
    72%, 100% { transform: translateX(48%) rotate(2deg); opacity: 0; }
}

.particle-field {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle-field i {
    --x: 50%;
    --y: 50%;
    --d: 10s;
    --delay: 0s;
    --size: 2px;
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: rgba(121, 225, 255, .72);
    box-shadow: 0 0 10px rgba(49, 199, 243, .55);
    animation: particleFloat var(--d) ease-in-out var(--delay) infinite alternate;
}

@keyframes particleFloat {
    0%   { transform: translate3d(0, 0, 0) scale(.8); opacity: .15; }
    48%  { opacity: .75; }
    100% { transform: translate3d(18px, -34px, 0) scale(1.2); opacity: .25; }
}

.institutional-clock {
    width: fit-content;
    min-width: 260px;
    margin-top: 28px;
    padding: 14px 18px 15px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(4,25,49,.62), rgba(8,50,87,.35));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 35px rgba(0,0,0,.13);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.clock-live-dot {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.66);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.clock-live-dot span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2bdb91;
    box-shadow: 0 0 0 4px rgba(43,219,145,.10), 0 0 14px rgba(43,219,145,.7);
    animation: statusPulse 2.2s ease-in-out infinite;
}

@keyframes statusPulse {
    50% { box-shadow: 0 0 0 7px rgba(43,219,145,.03), 0 0 20px rgba(43,219,145,.85); }
}

.clock-time {
    margin-top: 7px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 850;
    letter-spacing: .045em;
    font-variant-numeric: tabular-nums;
}

.clock-date {
    margin-top: 2px;
    color: rgba(255,255,255,.59);
    font-size: .72rem;
    line-height: 1.35;
}

.teacher-login-button {
    position: relative;
    overflow: hidden;
}

.teacher-login-button::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -30%;
    width: 38%;
    height: 260%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transform: rotate(18deg) translateX(-220%);
    transition: transform .72s ease;
}

.teacher-login-button:hover::before {
    transform: rotate(18deg) translateX(520%);
}

.teacher-login-button:disabled {
    cursor: wait;
    filter: saturate(.8);
}

.teacher-login-button.is-loading .button-arrow {
    animation: arrowWaiting .75s ease-in-out infinite alternate;
}

@keyframes arrowWaiting {
    to { transform: translateX(5px); opacity: .55; }
}

.login-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 44%, rgba(25,174,225,.18), transparent 28%),
        rgba(3, 20, 39, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity .32s ease, visibility .32s ease;
}

.login-is-submitting .login-transition {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.transition-panel {
    width: min(92vw, 390px);
    padding: 34px 28px 30px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(7,41,76,.82), rgba(5,26,50,.68));
    box-shadow: 0 30px 90px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.07);
    transform: translateY(12px) scale(.98);
    transition: transform .38s cubic-bezier(.2,.8,.2,1);
}

.login-is-submitting .transition-panel {
    transform: translateY(0) scale(1);
}

.transition-logo-ring {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 21px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 42px rgba(0,0,0,.22);
}

.transition-logo-ring::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(52,203,239,.35);
    border-radius: 29px;
    animation: ringBreath 1.4s ease-in-out infinite;
}

@keyframes ringBreath {
    50% { inset: -14px; opacity: .2; }
}

.transition-logo-ring img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 15px;
}

.transition-loader {
    height: 15px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.transition-loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #42d8f0;
    animation: loaderDot .9s ease-in-out infinite alternate;
}
.transition-loader span:nth-child(2) { animation-delay: .15s; }
.transition-loader span:nth-child(3) { animation-delay: .30s; background: #ef4056; }

@keyframes loaderDot {
    to { transform: translateY(-7px); opacity: .45; }
}

.transition-panel strong {
    display: block;
    font-size: 1rem;
    letter-spacing: .01em;
}

.transition-panel p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.58);
    font-size: .82rem;
}

@media (max-width: 900px) {
    .institutional-clock { min-width: 230px; }
    .clock-time { font-size: 1.4rem; }
}

@media (max-width: 550px) {
    .institutional-clock {
        width: 100%;
        min-width: 0;
        margin-top: 20px;
        padding: 12px 14px;
    }
    .clock-time { font-size: 1.25rem; }
    .clock-date { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
    .brand-light-sweep,
    .particle-field i,
    .clock-live-dot span,
    .transition-logo-ring::after,
    .transition-loader span,
    .teacher-login-button.is-loading .button-arrow {
        animation: none !important;
    }
    *, *::before, *::after {
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   AJUSTE ESCRITORIO · SIN BARRA DE DESPLAZAMIENTO
   Mantiene el login completo dentro del alto del monitor.
========================================================= */
@media (min-width: 921px) {
    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body {
        overscroll-behavior: none;
    }

    .teacher-login {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        grid-template-columns: minmax(0, 51.5%) minmax(0, 48.5%);
    }

    .teacher-login-brand,
    .teacher-login-form-section {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    /* ---------- Panel institucional ---------- */
    .teacher-login-brand-inner {
        height: 100%;
        min-height: 0;
        padding:
            clamp(24px, 3.1vh, 42px)
            clamp(34px, 4vw, 64px)
            clamp(20px, 2.6vh, 36px);
    }

    .brand-header {
        gap: 14px;
        flex: 0 0 auto;
    }

    .brand-logo-wrap {
        width: clamp(54px, 6.1vh, 66px);
        height: clamp(54px, 6.1vh, 66px);
        border-radius: 18px;
    }

    .brand-logo {
        width: clamp(40px, 4.7vh, 50px);
        height: clamp(40px, 4.7vh, 50px);
    }

    .brand-name strong {
        font-size: clamp(.84rem, 1.55vh, 1.08rem);
    }

    .brand-name small {
        margin-top: 4px;
        font-size: clamp(.61rem, 1.05vh, .73rem);
    }

    .brand-main {
        width: min(100%, 720px);
        margin: clamp(18px, 3.2vh, 34px) 0 0;
        flex: 0 0 auto;
    }

    .brand-eyebrow {
        font-size: clamp(.64rem, 1.15vh, .75rem);
    }

    .brand-kicker {
        margin-top: clamp(10px, 1.6vh, 16px);
        font-size: clamp(.76rem, 1.45vh, .94rem);
    }

    .brand-main h1 {
        margin-top: clamp(15px, 2.4vh, 24px);
        font-size: clamp(4rem, 8.6vh, 6.3rem);
        line-height: .84;
    }

    .brand-main h1 span {
        margin-top: clamp(8px, 1.3vh, 13px);
    }

    .brand-line {
        margin-top: clamp(18px, 2.7vh, 28px);
    }

    .brand-description {
        max-width: 610px;
        margin-top: clamp(12px, 1.8vh, 18px);
        font-size: clamp(.86rem, 1.55vh, 1.02rem);
        line-height: 1.55;
    }

    .institutional-clock {
        min-width: 220px;
        margin-top: clamp(14px, 2vh, 20px);
        padding: 10px 14px 11px;
        border-radius: 14px;
    }

    .clock-live-dot {
        font-size: .55rem;
    }

    .clock-time {
        margin-top: 5px;
        font-size: clamp(1.2rem, 2.4vh, 1.5rem);
    }

    .clock-date {
        font-size: clamp(.61rem, 1.05vh, .7rem);
    }

    .feature-grid {
        width: min(100%, 770px);
        margin-top: auto;
        padding: clamp(14px, 1.9vh, 20px) 10px;
        border-radius: 20px;
        flex: 0 0 auto;
    }

    .feature-item {
        padding: 0 clamp(8px, 1vw, 14px);
    }

    .feature-icon {
        width: clamp(32px, 4vh, 42px);
        height: clamp(32px, 4vh, 42px);
        margin-bottom: clamp(6px, 1vh, 10px);
    }

    .feature-icon svg {
        width: clamp(29px, 3.7vh, 38px);
        height: clamp(29px, 3.7vh, 38px);
    }

    .feature-item strong {
        font-size: clamp(.72rem, 1.3vh, .84rem);
    }

    .feature-item span {
        margin-top: 4px;
        font-size: clamp(.58rem, 1.03vh, .68rem);
        line-height: 1.42;
    }

    .brand-footer {
        margin-top: clamp(12px, 1.8vh, 20px);
        font-size: clamp(.55rem, .93vh, .64rem);
        flex: 0 0 auto;
    }

    /* ---------- Panel de acceso ---------- */
    .teacher-login-form-section {
        padding:
            clamp(14px, 2vh, 22px)
            clamp(32px, 5vw, 76px);
        align-items: center;
    }

    .teacher-login-form-container {
        width: min(100%, 560px);
        max-height: calc(100dvh - 28px);
        margin: 0 auto;
    }

    .login-logo-block {
        margin-bottom: clamp(10px, 1.5vh, 16px);
    }

    .login-logo {
        width: clamp(54px, 6.3vh, 66px);
        height: clamp(54px, 6.3vh, 66px);
        border-radius: 17px;
    }

    .login-logo-block strong {
        margin-top: 6px;
        font-size: clamp(.94rem, 1.7vh, 1.08rem);
    }

    .login-logo-block span {
        font-size: clamp(.61rem, 1.05vh, .69rem);
    }

    .access-pill {
        padding: 7px 15px;
        font-size: clamp(.62rem, 1.05vh, .7rem);
    }

    .access-pill svg {
        width: 17px;
        height: 17px;
    }

    .teacher-login-heading h2 {
        margin: clamp(12px, 1.8vh, 18px) 0 5px;
        font-size: clamp(2.2rem, 4.6vh, 3rem);
    }

    .teacher-login-heading p {
        max-width: 430px;
        font-size: clamp(.79rem, 1.35vh, .91rem);
        line-height: 1.4;
    }

    .teacher-login-alert {
        margin-top: 14px;
        padding: 10px 12px;
    }

    .teacher-login-form {
        margin-top: clamp(16px, 2.2vh, 22px);
    }

    .teacher-form-group {
        margin-bottom: clamp(11px, 1.55vh, 15px);
    }

    .teacher-form-group label {
        margin-bottom: 6px;
        font-size: clamp(.63rem, 1.04vh, .7rem);
    }

    .input-shell {
        height: clamp(50px, 6.1vh, 58px);
        border-radius: 14px;
    }

    .input-icon {
        width: 52px;
        flex-basis: 52px;
    }

    .input-icon svg {
        width: 22px;
        height: 22px;
    }

    .input-shell input {
        font-size: clamp(.83rem, 1.3vh, .93rem);
    }

    .password-toggle {
        width: 46px;
        height: 46px;
    }

    .password-toggle svg {
        width: 21px;
        height: 21px;
    }

    .login-options {
        margin: 0 0 clamp(11px, 1.55vh, 15px);
    }

    .remember-option {
        font-size: clamp(.73rem, 1.18vh, .82rem);
    }

    .fake-checkbox {
        width: 19px;
        height: 19px;
    }

    .teacher-login-button {
        min-height: clamp(52px, 6.2vh, 58px);
        border-radius: 14px;
    }

    .teacher-login-button strong {
        font-size: clamp(.75rem, 1.2vh, .84rem);
        letter-spacing: .08em;
    }

    .security-card {
        margin-top: clamp(12px, 1.65vh, 16px);
        padding: 10px 13px;
        min-height: 54px;
        border-radius: 13px;
    }

    .security-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .security-icon svg {
        width: 24px;
        height: 24px;
    }

    .security-card strong,
    .teacher-login-help p {
        font-size: clamp(.72rem, 1.14vh, .8rem);
    }

    .security-card span,
    .teacher-login-help span {
        font-size: clamp(.65rem, 1.02vh, .73rem);
    }

    .teacher-login-help {
        margin-top: clamp(9px, 1.25vh, 12px);
        padding: 10px 13px;
        min-height: 54px;
        border-radius: 13px;
    }

    .help-icon {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .access-divider {
        margin: clamp(11px, 1.5vh, 15px) 0 0;
    }

    .access-divider span {
        font-size: clamp(.58rem, .9vh, .65rem);
    }

    .teacher-back-link {
        margin-top: clamp(8px, 1.1vh, 11px);
        font-size: clamp(.68rem, 1.05vh, .76rem);
    }

    .login-footer {
        margin-top: clamp(10px, 1.35vh, 14px);
    }

    .login-footer p {
        font-size: clamp(.62rem, .96vh, .69rem);
    }

    .login-footer strong {
        font-size: clamp(.67rem, 1.02vh, .73rem);
    }

    .footer-status {
        margin-top: clamp(6px, .8vh, 9px);
        font-size: clamp(.58rem, .87vh, .65rem);
    }

    .login-footer small {
        margin-top: clamp(6px, .8vh, 9px);
        font-size: clamp(.56rem, .82vh, .62rem);
    }
}

/* Escritorios con poca altura: compacta todavía más sin ocultar controles. */
@media (min-width: 921px) and (max-height: 780px) {
    .teacher-login-brand-inner {
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .brand-main {
        margin-top: 14px;
    }

    .brand-main h1 {
        font-size: clamp(3.5rem, 8.1vh, 5rem);
    }

    .brand-description {
        line-height: 1.42;
    }

    .institutional-clock {
        margin-top: 11px;
    }

    .feature-grid {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .feature-item span {
        display: none;
    }

    .teacher-login-form-section {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .login-logo-block {
        margin-bottom: 7px;
    }

    .login-logo {
        width: 48px;
        height: 48px;
    }

    .login-logo-block strong {
        margin-top: 3px;
    }

    .teacher-login-heading h2 {
        margin-top: 9px;
    }

    .teacher-login-form {
        margin-top: 12px;
    }

    .teacher-form-group {
        margin-bottom: 9px;
    }

    .input-shell {
        height: 48px;
    }

    .teacher-login-button {
        min-height: 50px;
    }

    .security-card,
    .teacher-login-help {
        min-height: 48px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .access-divider {
        margin-top: 8px;
    }

    .login-footer {
        margin-top: 7px;
    }

    .footer-status {
        margin-top: 4px;
    }

    .login-footer small {
        margin-top: 4px;
    }
}

/* En móvil/tablet vuelve el desplazamiento normal. */
@media (max-width: 920px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* =========================================================
   PORTAL DOCENTE · INSTITUTIONAL EXPERIENCE 2026
   Splash institucional + transición de entrada premium
========================================================= */
body.page-is-booting {
    overflow: hidden !important;
}

.institutional-splash {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 42%, rgba(27, 181, 231, .15), transparent 24%),
        radial-gradient(circle at 86% 82%, rgba(211, 31, 53, .10), transparent 24%),
        linear-gradient(145deg, #04162b 0%, #06284b 48%, #041a32 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity .48s cubic-bezier(.2,.8,.2,1), visibility .48s ease;
}

body.page-is-ready .institutional-splash,
.institutional-splash[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.splash-ambient::before,
.splash-ambient::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(69, 220, 232, .12);
}
.splash-ambient::before {
    width: min(72vw, 880px);
    height: min(72vw, 880px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.splash-ambient::after {
    width: min(49vw, 590px);
    height: min(49vw, 590px);
    right: -15%;
    bottom: -35%;
    border-color: rgba(207,32,53,.15);
}

.splash-shell {
    position: relative;
    z-index: 2;
    width: min(92vw, 470px);
    text-align: center;
    transform: translateY(8px) scale(.985);
    animation: splashEntrance .7s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes splashEntrance {
    from { opacity: 0; transform: translateY(16px) scale(.965); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-logo-orbit {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
}

.splash-logo-frame {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.27);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
    box-shadow:
        0 18px 50px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.18),
        0 0 50px rgba(24,185,237,.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.splash-logo-frame img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0,0,0,.16));
}

.splash-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(69,220,232,.24);
}
.orbit-a { animation: splashOrbit 8s linear infinite; }
.orbit-b {
    inset: 13px;
    border-color: rgba(207,32,53,.24);
    animation: splashOrbitReverse 6s linear infinite;
}
.orbit-a::after,
.orbit-b::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    top: 13px;
    left: 26px;
    border-radius: 50%;
    background: #48ddef;
    box-shadow: 0 0 14px rgba(72,221,239,.9);
}
.orbit-b::after {
    top: auto;
    left: auto;
    right: 12px;
    bottom: 24px;
    background: #ef4056;
    box-shadow: 0 0 14px rgba(239,64,86,.8);
}

@keyframes splashOrbit { to { transform: rotate(360deg); } }
@keyframes splashOrbitReverse { to { transform: rotate(-360deg); } }

.splash-brand strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: .16em;
}
.splash-brand span {
    display: block;
    margin-top: 7px;
    color: rgba(255,255,255,.58);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.splash-rule {
    width: 62px;
    height: 3px;
    margin: 24px auto 20px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}
.splash-rule span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--cyan), var(--cyan-2));
    animation: splashRule 1.15s ease-in-out infinite alternate;
}
@keyframes splashRule { from { transform: translateX(-40%); } to { transform: translateX(40%); } }

.splash-product {
    margin: 0;
    color: rgba(255,255,255,.96);
    font-size: 1.4rem;
    font-weight: 850;
    letter-spacing: .25em;
}
.splash-message {
    margin: 13px 0 0;
    color: rgba(255,255,255,.58);
    font-size: .76rem;
    letter-spacing: .04em;
}

.splash-progress {
    width: min(100%, 310px);
    height: 2px;
    margin: 24px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
}
.splash-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #38d3f0, #fff, #ef4056, transparent);
    animation: splashLoading 1.2s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes splashLoading {
    from { transform: translateX(-145%); }
    to { transform: translateX(345%); }
}

.splash-shell small {
    display: block;
    margin-top: 23px;
    color: rgba(255,255,255,.34);
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .17em;
}

/* Entrada del portal: se percibe como una sola experiencia, no como dos pantallas. */
body.page-is-booting .teacher-login {
    opacity: 0;
    transform: scale(1.008);
}
body.page-is-ready .teacher-login {
    animation: portalReveal .72s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes portalReveal {
    from { opacity: 0; transform: scale(1.008); }
    to   { opacity: 1; transform: scale(1); }
}

body.page-is-ready .brand-header,
body.page-is-ready .brand-main,
body.page-is-ready .feature-grid,
body.page-is-ready .brand-footer,
body.page-is-ready .teacher-login-form-container {
    animation: contentReveal .72s cubic-bezier(.2,.8,.2,1) both;
}
body.page-is-ready .brand-main { animation-delay: .05s; }
body.page-is-ready .feature-grid { animation-delay: .10s; }
body.page-is-ready .brand-footer { animation-delay: .14s; }
body.page-is-ready .teacher-login-form-container { animation-delay: .04s; }

@keyframes contentReveal {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo de alta resolución: respeta SVG/PNG sin forzar recortes. */
.brand-logo,
.login-logo,
.transition-logo-ring img,
.splash-logo-frame img {
    image-rendering: auto;
}

/* Desktop: una sola pantalla, sin scrollbar lateral. */
@media (min-width: 921px) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .teacher-login,
    .teacher-login-brand,
    .teacher-login-brand-inner,
    .teacher-login-form-section {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }

    .teacher-login {
        overflow: hidden;
        grid-template-columns: minmax(0, 51%) minmax(0, 49%);
    }

    .teacher-login-brand,
    .teacher-login-form-section {
        overflow: hidden;
    }

    .teacher-login-brand-inner {
        padding-top: clamp(24px, 3.1vh, 48px);
        padding-bottom: clamp(22px, 3vh, 46px);
    }

    .brand-main {
        margin-top: auto;
        margin-bottom: clamp(20px, 3vh, 38px);
    }

    .feature-grid {
        flex-shrink: 0;
    }

    .teacher-login-form-section {
        padding-top: clamp(18px, 2.4vh, 38px);
        padding-bottom: clamp(18px, 2.4vh, 38px);
    }

    .teacher-login-form-container {
        max-height: calc(100dvh - 36px);
        transform-origin: center;
    }
}

/* Escritorio con poca altura: compacto sin sacrificar funcionalidad. */
@media (min-width: 921px) and (max-height: 850px) {
    .brand-header { gap: 12px; }
    .brand-logo-wrap { width: 56px; height: 56px; border-radius: 16px; }
    .brand-logo { width: 42px; height: 42px; }
    .brand-main h1 { font-size: clamp(3.7rem, 7vh, 5.8rem); }
    .brand-kicker { margin-top: 10px; }
    .brand-line { margin-top: 20px; }
    .brand-description { margin-top: 14px; font-size: .91rem; line-height: 1.48; }
    .institutional-clock { margin-top: 16px; padding: 10px 14px; min-width: 230px; }
    .clock-time { font-size: 1.3rem; }
    .feature-grid { padding: 16px 12px; border-radius: 19px; }
    .feature-icon { width: 34px; height: 34px; margin-bottom: 6px; }
    .feature-icon svg { width: 30px; height: 30px; }
    .feature-item span { margin-top: 4px; font-size: .64rem; line-height: 1.35; }
    .brand-footer { margin-top: 14px; }

    .login-logo-block { margin-bottom: 13px; }
    .login-logo { width: 58px; height: 58px; border-radius: 16px; }
    .login-logo-block strong { margin-top: 5px; font-size: 1rem; }
    .teacher-login-heading h2 { margin-top: 14px; font-size: 2.4rem; }
    .teacher-login-heading p { font-size: .88rem; }
    .teacher-login-form { margin-top: 20px; }
    .teacher-form-group { margin-bottom: 13px; }
    .teacher-form-group label { margin-bottom: 6px; }
    .input-shell { height: 54px; }
    .login-options { margin: -1px 0 13px; }
    .teacher-login-button { min-height: 54px; }
    .security-card,
    .teacher-login-help { margin-top: 14px; padding: 10px 13px; }
    .access-divider { margin: 17px 0 12px; }
    .login-footer { margin-top: 17px; }
    .footer-status { margin-top: 8px; }
    .login-footer small { margin-top: 7px; }
}

@media (min-width: 921px) and (max-height: 720px) {
    .institutional-clock { display: none; }
    .feature-grid { padding-top: 11px; padding-bottom: 11px; }
    .feature-item span { display: none; }
    .security-card { display: none; }
    .login-footer { display: none; }
    .teacher-login-help { margin-top: 10px; }
    .access-divider { margin-top: 12px; }
}

@media (max-width: 920px) {
    html,
    body {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .splash-logo-orbit { width: 116px; height: 116px; }
    .splash-logo-frame { width: 76px; height: 76px; border-radius: 21px; }
    .splash-logo-frame img { width: 56px; height: 56px; }
    .splash-product { font-size: 1.1rem; letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
    .splash-shell,
    .splash-orbit,
    .splash-rule span,
    .splash-progress span,
    body.page-is-ready .teacher-login,
    body.page-is-ready .brand-header,
    body.page-is-ready .brand-main,
    body.page-is-ready .feature-grid,
    body.page-is-ready .brand-footer,
    body.page-is-ready .teacher-login-form-container {
        animation: none !important;
    }
}


/* =========================================================
   LOGOTIPOS · CORRECCIÓN 2026
========================================================= */
.brand-logo,
.login-logo,
.splash-logo-frame img,
.transition-logo-ring img {
    -webkit-user-drag: none;
    user-select: none;
}

.splash-logo-frame img,
.transition-logo-ring img {
    object-fit: contain;
}

/* En escritorio el portal permanece exactamente dentro del viewport. */
@media (min-width: 921px) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .teacher-login {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .teacher-login-brand,
    .teacher-login-form-section,
    .teacher-login-brand-inner {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }
}

/* En móvil/tablet vuelve el desplazamiento natural. */
@media (max-width: 920px) {
    html,
    body {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }
}
