:root {
    color-scheme: light;
    font: 100% / 1.55 system-ui, sans-serif;
    color: #172b4d;
    background: #f3f7fc;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 95% 0%, #e1f0ff, transparent 42%),
        radial-gradient(ellipse at 0% 5%, #d7e8ff, transparent 52%),
        #f5f8fc;
}
main { width: min(100%, 68rem); margin-inline: auto; padding: clamp(1rem, 4vw, 2.5rem); }
.auth { max-width: 34rem; }
.masthead {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(1rem, 4vw, 2rem);
    border-radius: 1.35rem;
    background: linear-gradient(125deg, #123b78, #1d5cb8);
    color: white;
}
.brand-icon {
    display: grid;
    place-items: center;
    flex: 0 0 3rem;
    height: 3rem;
    border-radius: .9rem;
    background: #d3e7ff;
    color: #163e73;
    font: 700 1.15rem ui-monospace, monospace;
}
.eyebrow { margin: 0; color: #e3efff; font-size: .72rem; font-weight: 750; letter-spacing: .12em; }
h1, h2 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.55rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 4vw, 1.55rem); margin-block-end: 1rem; }
section, article {
    margin-block: 1rem;
    padding: clamp(1rem, 4vw, 1.75rem);
    border: 1px solid #dce5f1;
    border-radius: 1.25rem;
    background: #fff;
}
section { box-shadow: 0 12px 28px #123b7812; }
article { background: #f8fbff; }
article p { margin-block: .35rem .65rem; }
label { display: block; margin-block: .9rem; font-weight: 650; }
input {
    display: block;
    width: 100%;
    min-height: 3rem;
    margin-block-start: .35rem;
    padding: .65rem .8rem;
    border: 1px solid #8296b1;
    border-radius: .7rem;
    font: inherit;
    color: inherit;
    background: #fff;
}
button, .link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .55rem 1rem;
    border: 1px solid transparent;
    border-radius: .7rem;
    background: #1d56ad;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.auth button { width: 100%; }
button:hover, .link:hover { background: #16428a; }
button:active, .link:active { background: #102f65; }
.secondary { color: #174b96; background: #eaf2ff; border-color: #cbdcf5; }
.secondary:hover, .secondary:active { color: #fff; }
a { color: #174b96; text-underline-offset: .2em; font-weight: 650; }
:focus-visible { outline: 3px solid #1d56ad; outline-offset: 3px; }
.row { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.dashboard > .row { justify-content: space-between; margin-block-start: 1rem; }
.notice, .badge { border-radius: .65rem; font-weight: 650; }
.notice { padding: .75rem 1rem; background: #fff1cf; color: #614406; }
.badge { display: inline-block; padding: .15rem .6rem; font-size: .875rem; }
.activo { background: #d6f7e9; color: #145440; }
.pendiente { background: #fff0c6; color: #654500; }
.suspendido { background: #ffe2eb; color: #862849; }
p, li { overflow-wrap: anywhere; }
li { margin-block: .65rem; }
@media (max-width: 30rem) {
    article .row > *, article .row button { width: 100%; }
}

.dashboard-menu { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }
.link.secondary { color: #174b96; background: #eaf2ff; border-color: #cbdcf5; }
.link.secondary:hover { color: #fff; background: #16428a; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.form-grid > label { min-width: 0; }
.profile-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 1rem; background: #eaf2ff; overflow-wrap: anywhere; }
.avatar { width: 4rem; height: 4rem; flex: 0 0 4rem; border-radius: 50%; object-fit: cover; }
.avatar-placeholder { display: grid; place-items: center; background: #d3e7ff; color: #145440; font-size: 1.5rem; }
.hint { font-size: .9rem; color: #526783; }
details { border: 1px solid #dce5f1; border-radius: .8rem; padding: .65rem .9rem; margin-block: .75rem; }
summary { cursor: pointer; font-weight: 700; color: #174b96; padding-block: .35rem; }

.teacher-topbar {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 3.2rem;
    padding: .25rem clamp(.65rem, 2vw, 1.5rem);
    background: #142b4d;
    color: #fff;
    font-size: .875rem;
}
.topbar-brand { color: #fff; text-decoration: none; white-space: nowrap; }
.topbar-role { color: #d5e5ff; border-inline-start: 1px solid #476489; padding-inline-start: .7rem; }
.topbar-account { display: flex; align-items: center; gap: .65rem; margin-inline-start: auto; min-width: 0; }
.topbar-account > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-button { background: #244571; padding-inline: .65rem; min-width: 2.75rem; }
.teacher-workspace {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 3.2rem);
    padding: clamp(.75rem, 2vw, 1.5rem);
    background: #faf7f3;
    font-size: .875rem;
}
.teacher-content { display: grid; gap: .85rem; align-items: start; }
.profile-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.students-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.teacher-content > section { margin: 0; min-width: 0; padding: 1rem; border-radius: .75rem; box-shadow: none; }
.teacher-workspace h2 { font-size: 1rem; margin-block-end: .75rem; }
.teacher-workspace label { margin-block: .55rem; }
.teacher-workspace input { min-height: 2.65rem; padding: .45rem .6rem; }
.teacher-workspace .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.teacher-workspace .profile-card { padding: .65rem; gap: .7rem; border-radius: .6rem; }
.teacher-workspace .avatar { width: 2.75rem; height: 2.75rem; flex-basis: 2.75rem; }
.teacher-workspace .hint { font-size: .8125rem; }
.student-directory article { margin: 0; padding: .65rem 0; border: 0; border-top: 1px solid #dce5f1; border-radius: 0; background: transparent; }
.student-directory article p { margin-block: .2rem .4rem; }
.teacher-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    margin: 0;
    width: min(18rem, 88vw);
    max-width: none;
    height: 100dvh;
    max-height: none;
    padding: .8rem;
    border: 0;
    background: #fff;
    color: #172b4d;
    box-shadow: 12px 0 32px #142b4d38;
}
.teacher-drawer::backdrop { background: #142b4d75; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.drawer-heading h2 { margin: 0; }
.teacher-drawer .dashboard-menu { display: grid; gap: .45rem; }
.teacher-drawer .link { justify-content: flex-start; }
@media (max-width: 55rem) {
    .profile-layout, .students-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
    .topbar-role, .topbar-account > span { display: none; }
    .teacher-workspace input { font-size: 1rem; }
}
.workspace-heading { margin-block: 0 .9rem; }
.workspace-heading p { margin: 0 0 .2rem; font-size: .75rem; font-weight: 650; color: #526783; }
.workspace-heading h1 { font-size: 1.3rem; }
.student-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .45rem .75rem; align-items: center; }
.student-entry[hidden] { display: none; }
.student-identity { min-width: 0; overflow-wrap: anywhere; }
.student-identity p { color: #526783; font-size: .8125rem; }
.student-entry .link { gap: .3rem; }
.student-entry svg { width: 1rem; height: 1rem; }
.student-entry button, .student-entry .link { padding-inline: .6rem; }
.student-entry .row > *, .student-entry .row button { width: auto; }
.file-panel { grid-column: 1 / -1; }
@media (max-width: 42rem), (min-width: 55.01rem) and (max-width: 74rem) {
    .student-entry { grid-template-columns: minmax(0, 1fr) auto; }
    .student-entry .row { grid-column: 1 / -1; }
}
.teacher-shell { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); min-height: calc(100vh - 3.2rem); }
.desktop-navigation { position: sticky; top: 0; align-self: start; min-height: calc(100vh - 3.2rem); padding: 1rem .7rem; background: #fff; border-inline-end: 1px solid #dce5f1; }
.desktop-navigation > p { margin: .3rem .55rem .8rem; color: #526783; font-size: .68rem; letter-spacing: .08em; font-weight: 750; }
.teacher-shell .dashboard-menu { display: grid; gap: .3rem; margin: 0; }
.teacher-drawer .dashboard-menu { margin-top: .8rem; }
.dashboard-menu a { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .45rem .65rem; color: #3e5678; border-radius: .55rem; text-decoration: none; font-size: .875rem; }
.dashboard-menu a:hover, .dashboard-menu a[aria-current="page"] { background: #e7f0ff; color: #174b96; }
.dashboard-menu a[aria-current="page"] { box-shadow: inset 3px 0 #1d56ad; }
.dashboard-menu svg { width: 1.15rem; height: 1.15rem; flex: none; }
#menu-open { display: none; }
.teacher-workspace { min-width: 0; }
.teacher-content > .welcome-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; background: #edf4ff; border-color: #cbdcf5; }
.welcome-card h2 { margin: 0; }
.welcome-card p { margin: .25rem 0 0; color: #526783; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.metric { min-width: 0; padding: .85rem; border: 1px solid #dce5f1; border-radius: .75rem; background: #fff; }
.metric p { margin: .3rem 0 .1rem; color: #526783; }
.metric strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.metric-dot { display: block; width: .55rem; height: .55rem; border-radius: 50%; background: #1d56ad; }
.metric-dot.activo { background: #187352; }
.metric-dot.pendiente { background: #9a6200; }
.metric-dot.suspendido { background: #a52c55; }
.teacher-workspace .profile-card { padding: .85rem; margin-bottom: 1rem; }
.profile-card strong, .profile-card span { display: block; overflow-wrap: anywhere; }
.profile-card .avatar-placeholder { display: grid; }
.profile-role { color: #174b96; font-size: .72rem; font-weight: 750; }
.photo-field input { background: #f7faff; }
.photo-field input::file-selector-button, .student-modal input::file-selector-button { padding: .35rem .6rem; margin-inline-end: .5rem; border: 0; border-radius: .4rem; background: #e7f0ff; color: #174b96; font: inherit; font-weight: 700; cursor: pointer; }
.password-disclosure { margin: .75rem 0 0; padding: 0; border: 0; }
.password-disclosure summary { list-style: none; }
.password-disclosure summary::-webkit-details-marker { display: none; }
.password-disclosure form { margin-top: .7rem; }
@media (max-width: 55rem) {
    .teacher-shell { grid-template-columns: minmax(0, 1fr); }
    .desktop-navigation { display: none; }
    #menu-open { display: inline-flex; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Compact dashboard forms */
.teacher-workspace {
    width: 100%;
    max-width: none;
    padding: 1rem;
    font-size: .8125rem;
    line-height: 1.45;
    background: #f2f6fc;
}
.teacher-content { gap: .85rem; }
.teacher-content > section { padding: 1rem; border-radius: .65rem; border-color: #d8e3f2; }
.teacher-workspace h2 { font-size: .9375rem; }
.workspace-heading { margin-bottom: .8rem; }
.workspace-heading h1 { font-size: 1.125rem; }
.teacher-workspace label { font-size: .8125rem; margin-block: .6rem; color: #354c6c; }
.teacher-workspace input {
    width: 100%;
    min-width: 0;
    min-height: 2.5rem;
    padding: .5rem .65rem;
    font-size: .875rem;
    background: #f9fbff;
    border-color: #bbcce2;
    border-radius: .45rem;
}
.teacher-workspace input:focus { border-color: #2463c8; background: #fff; }
.teacher-workspace button, .teacher-workspace .link {
    font-size: .8125rem;
    min-height: 2.5rem;
    border-radius: .45rem;
    box-shadow: 0 2px 4px #143a7012;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.teacher-workspace button:hover, .teacher-workspace .link:hover { box-shadow: 0 3px 8px #143a7024; }
.teacher-workspace button[value="perfil"], .teacher-workspace button[value="clave"] { background: #1e55ad; color: #fff; }
.teacher-workspace button[value="perfil"]:hover, .teacher-workspace button[value="clave"]:hover { background: #153e83; }
.teacher-workspace button[value="agregar"], .teacher-workspace button[value="activar"] { background: #12704c; color: #fff; }
.teacher-workspace button[value="agregar"]:hover, .teacher-workspace button[value="activar"]:hover { background: #095337; }
.teacher-workspace button[value="importar"] { background: #086e85; color: #fff; }
.teacher-workspace button[value="importar"]:hover { background: #075468; }
.teacher-workspace button[value="suspender"] { border-color: #ebc5ce; background: #fff0f3; color: #9d2442; }
.teacher-workspace button[value="suspender"]:hover { background: #faddE5; }
.form-actions { display: flex; justify-content: flex-end; border-top: 1px solid #e3eaf4; padding-top: .8rem; margin-top: .8rem; }
.teacher-workspace .hint { font-size: .75rem; line-height: 1.5; }
.profile-layout { grid-template-columns: minmax(0, 1fr); }
.teacher-workspace .profile-card { background: linear-gradient(110deg, #e6efff, #f5f9ff); padding: .85rem; }
.profile-card strong { font-size: .9375rem; }
.profile-card span { font-size: .8125rem; }
.teacher-workspace .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.security-card > .hint { margin-block: .25rem .5rem; }
.teacher-workspace .security-card { padding-block: .8rem; }
.teacher-workspace .security-card h2 { margin-bottom: .25rem; }
.student-tools details { padding: .65rem; background: #f9fbff; border-radius: .5rem; }
.student-tools summary { font-size: .8125rem; }
.student-tools .form-grid { grid-template-columns: minmax(0, 1fr); }
.student-entry strong { font-size: .8125rem; }
@media (min-width: 85rem) {
    .profile-editor .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
    .teacher-workspace { padding: .65rem; }
    .teacher-content > section { padding: .8rem; }
    .teacher-workspace .form-grid { grid-template-columns: minmax(0, 1fr); }
    .teacher-workspace input { font-size: 1rem; min-height: 2.75rem; }
    .teacher-workspace button, .teacher-workspace .link { min-height: 2.75rem; }
    .form-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .teacher-workspace button, .teacher-workspace .link { transition: none; }
}

.students-layout { grid-template-columns: minmax(0, 1fr); }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.directory-toolbar h2 { margin: 0; }
.teacher-workspace .add-individual { background: #12704c; color: #fff; }
.teacher-workspace .add-individual:hover { background: #095337; }
.teacher-workspace .add-masiva { background: #086e85; color: #fff; }
.teacher-workspace .add-masiva:hover { background: #075468; }
.student-modal {
    width: min(34rem, calc(100% - 1.5rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 1.1rem;
    border: 1px solid #d8e3f2;
    border-radius: .8rem;
    background: #fff;
    color: #172b4d;
    box-shadow: 0 20px 60px #142b4d40;
}
.student-modal::backdrop { background: #142b4d80; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.modal-heading h2 { margin: 0; }
.teacher-workspace .modal-close { background: #edf3fc; color: #174b96; width: 2.75rem; min-height: 2.75rem; padding: 0; font-size: 1.4rem; box-shadow: none; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #e3eaf4; }
.student-modal .form-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 34rem) {
    .directory-toolbar .row { width: 100%; }
    .directory-toolbar .row > button { flex: 1 1 auto; }
    .student-modal { padding: .85rem; }
}

.notice { white-space: pre-wrap; overflow-wrap: anywhere; }
.teacher-workspace input[readonly] { background: #edf2f8; color: #526783; }

.teacher-workspace .danger, .teacher-workspace button[value="eliminar"] { background: #fff0f3; color: #9d2442; border-color: #ebc5ce; }
.teacher-workspace .danger:hover, .teacher-workspace button[value="eliminar"]:hover { background: #fadde5; }
.student-entry { grid-template-columns: minmax(0, 1fr) auto; }
.student-entry > .row { grid-column: 1 / -1; }
.code-preview { overflow: auto; max-height: 32rem; padding: .85rem; border-radius: .5rem; background: #142b4d; color: #e6efff; font: .8125rem/1.6 ui-monospace, monospace; tab-size: 4; }
.student-trash > details { margin: 0; }
.student-trash article { padding: .65rem; }
@media (min-width: 85rem) {
    .student-entry { grid-template-columns: minmax(0, 1fr) auto auto; }
    .student-entry > .row { grid-column: auto; }
}

.teacher-shell.files-shell { grid-template-columns: minmax(0, 1fr); }

/* Action colors */
button, .link {
    --action-gradient: linear-gradient(120deg, #235fc8, #16428a); background: var(--action-gradient);
    color: #fff;
}
button:hover, .link:hover { filter: brightness(1.08); }
button:active, .link:active { filter: brightness(.94); }
.secondary, .link.secondary {
    --action-gradient: linear-gradient(120deg, #edf3ff, #dce8ff); background: var(--action-gradient);
    color: #174b96;
    border-color: #c2d4f2;
}
.secondary:hover, .secondary:active, .link.secondary:hover { color: #174b96; }
.teacher-workspace .add-individual,
.teacher-workspace button[value="agregar"],
.teacher-workspace button[value="activar"],
.teacher-workspace button[value="restaurar"] {
    --action-gradient: linear-gradient(120deg, #087345, #12603e); background: var(--action-gradient);
    color: #fff;
}
.teacher-workspace .add-masiva,
.teacher-workspace button[value="importar"],
.teacher-workspace button[data-open-modal="editar-estudiante"],
.teacher-workspace button[value="editar"] {
    --action-gradient: linear-gradient(120deg, #7635ba, #502597); background: var(--action-gradient);
    color: #fff;
    border-color: #6733a6;
}
.teacher-workspace .danger,
.teacher-workspace button[value="eliminar"],
.teacher-workspace button[value="suspender"] {
    --action-gradient: linear-gradient(120deg, #bf2947, #9d1e3b); background: var(--action-gradient);
    color: #fff;
    border-color: #ac2541;
}
.teacher-workspace button[value="perfil"],
.teacher-workspace button[value="clave"] {
    --action-gradient: linear-gradient(120deg, #235fc8, #16428a); background: var(--action-gradient);
    color: #fff;
}
.topbar-button { --action-gradient: linear-gradient(120deg, #345b8d, #244571); background: var(--action-gradient); }
.teacher-workspace .modal-close, .feedback-close {
    --action-gradient: linear-gradient(120deg, #eef3fd, #e0eafa); background: var(--action-gradient);
    color: #174b96;
}
.teacher-workspace .profile-card { background: linear-gradient(110deg, #e1ebff, #eee5ff); }
.teacher-content > .welcome-card { background: linear-gradient(110deg, #e4efff, #eee8fc); }

/* Compact feedback window */
.feedback-dialog {
    width: min(22rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 1rem;
    border: 1px solid #d8e3f2;
    border-radius: .85rem;
    background: #fff;
    color: #172b4d;
    box-shadow: 0 18px 60px #142b4d40;
    font: .8125rem/1.5 system-ui, sans-serif;
}
.feedback-dialog::backdrop { background: #142b4d65; }
.feedback-heading { display: flex; align-items: center; gap: .55rem; }
.feedback-heading h2 { margin: 0; font-size: .9375rem; }
.feedback-heading > form { margin-inline-start: auto; }
.feedback-close { min-height: 2.25rem; width: 2.25rem; padding: 0; font-size: 1.25rem; }
.feedback-icon { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: .65rem; --action-gradient: linear-gradient(120deg, #087345, #12603e); background: var(--action-gradient); color: #fff; font-weight: 750; }
.feedback-dialog.error .feedback-icon { --action-gradient: linear-gradient(120deg, #bf2947, #9d1e3b); background: var(--action-gradient); }
#feedback-text { margin: .8rem 0 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-actions { display: flex; justify-content: flex-end; }
.feedback-actions button { font-size: .8125rem; min-height: 2.5rem; padding: .45rem .85rem; --action-gradient: linear-gradient(120deg, #7635ba, #502597); background: var(--action-gradient); }
@media (max-width: 34rem) {
    .feedback-actions button, .feedback-close { min-height: 2.75rem; }
    .feedback-close { width: 2.75rem; }
}

.teacher-workspace button:not(:disabled):hover,
.teacher-workspace .link:hover,
button:not(:disabled):hover,
.link.secondary:hover {
    background: var(--action-gradient, linear-gradient(120deg, #235fc8, #16428a));
}
/* Sign in */
.login-page { background: #f5f8ff; }
.login-page .auth {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
}
.login-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: radial-gradient(ellipse at 0 100%, #4c37a4, transparent 65%), linear-gradient(145deg, #12325e, #174e9c);
    color: #fff;
}
.login-brand { display: flex; align-items: center; gap: .7rem; font-size: 1rem; font-weight: 750; }
.login-brand > span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #8bafe77a; border-radius: .7rem; background: #ffffff12; font: 700 1rem ui-monospace, monospace; }
.login-kicker { margin: 0 0 .65rem; font-size: .6875rem; letter-spacing: .12em; font-weight: 750; }
.login-intro { width: 100%; max-width: 30rem; margin-inline: auto; }
.login-intro .login-kicker { color: #b8d6ff; }
.login-intro h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.25; margin: 0 0 .7rem; }
.login-intro > p:not(.login-kicker) { color: #d0e0f7; font-size: .875rem; max-width: 25rem; }
.login-code { margin-top: 1.6rem; border: 1px solid #8baee54d; border-radius: .8rem; background: #0d2143b3; box-shadow: 0 18px 45px #06183140; overflow: hidden; }
.code-toolbar { display: flex; align-items: center; gap: .35rem; padding: .75rem; border-bottom: 1px solid #8baee526; }
.code-toolbar > span { width: .45rem; height: .45rem; border-radius: 50%; background: #ff889f; }
.code-toolbar > span:nth-child(2) { background: #ffd38b; }
.code-toolbar > span:nth-child(3) { background: #69d9b3; }
.code-toolbar small { color: #adbfdf; margin-left: .4rem; font-size: .6875rem; }
.code-body { padding: .7rem; font: .75rem/1.8 ui-monospace, monospace; color: #e5edff; }
.code-body p { margin: .3rem 0; white-space: nowrap; }
.code-body i { font-style: normal; color: #7f9ac3; margin-right: .7rem; }
.code-body b { color: #92c9ff; font-weight: 500; }
.login-visual-footer { font-size: .75rem; color: #cad7ef; margin: 0; }
.login-page .login-panel {
    display: grid;
    place-items: center;
    min-width: 0;
    margin: 0;
    padding: clamp(1.25rem, 5vw, 4rem);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}
.login-form-wrap { width: min(100%, 23rem); }
.login-symbol { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .8rem; color: #235fc8; background: linear-gradient(130deg, #e6efff, #ede7ff); margin-bottom: 1.3rem; }
.login-symbol svg { width: 1.6rem; height: 1.6rem; }
.login-form-wrap > .login-kicker { color: #45689f; margin-bottom: .45rem; }
.login-form-wrap h1 { font-size: 1.5rem; line-height: 1.3; color: #172b4d; }
.login-description { font-size: .8125rem; color: #526783; margin: .55rem 0 1.6rem; }
.login-form label { font-size: .8125rem; margin: 1rem 0 .4rem; color: #354c6c; }
.login-form input { min-height: 2.875rem; margin: 0; padding: .65rem .8rem; border: 1px solid #c3d1e5; border-radius: .55rem; background: #f8faff; font-size: .875rem; }
.login-form input::placeholder { color: #657b9a; }
.login-form input:focus { background: #fff; border-color: #235fc8; }
.login-password { position: relative; }
.login-password input { padding-inline-end: 5.2rem; }
.login-page .auth #password-toggle { position: absolute; inset: .3rem .3rem .3rem auto; width: auto; min-height: 2.25rem; padding: .2rem .6rem; border-radius: .4rem; background: #e6efff; color: #174b96; font-size: .75rem; }
.login-page .auth #password-toggle:hover { background: #d8e7ff; }
.login-page .login-submit { display: flex; justify-content: space-between; width: 100%; margin-top: 1.4rem; padding: .65rem .9rem; min-height: 2.875rem; border-radius: .55rem; font-size: .875rem; box-shadow: 0 5px 14px #235fc82b; }
.login-help { border-top: 1px solid #e3eaf4; padding-top: 1.1rem; margin-top: 1.6rem; font-size: .75rem; color: #526783; }
@media (max-width: 48rem) {
    .login-page .auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .login-visual { padding: 1rem 1.25rem; gap: 0; }
    .login-intro, .login-visual-footer { display: none; }
    .login-page .login-panel { padding: 2rem 1.25rem; align-items: center; }
    .login-form input { font-size: 1rem; }
}
