body {
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #f4f8fb 0%, #e8eef6 100%);
    color: #1f3349;
}
button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.dropdown-menu,
.table {
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
}
body > .container-fluid {
    padding-right: 0;
    padding-left: 0;
}
.app-navbar {
    background: linear-gradient(90deg, #176b98 0%, #1e88b8 48%, #2aa7c9 100%);
    border-bottom: 3px solid rgba(255, 255, 255, 0.28);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1100;
}
.app-navbar > .container-fluid {
    padding-right: 1cm;
    padding-left: 1cm;
}
.app-page {
    width: calc(100% - 2cm);
    max-width: none;
    margin-right: 1cm;
    margin-left: 1cm;
    padding: 5.4rem 0 1.5rem;
}
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}
.app-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    object-fit: contain;
    padding: 0.2rem;
}
.app-navbar .nav-link {
    border-radius: 0.35rem;
    margin-inline: 0.1rem;
    padding-inline: 0.8rem;
    color: rgba(255, 255, 255, 0.92);
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
}
.app-navbar .nav-link.app-logout-link {
    background: #ffffff;
    color: #ffc107;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.35rem 0.8rem rgba(31, 51, 73, 0.16);
}
.app-navbar .nav-link.app-logout-link:hover,
.app-navbar .nav-link.app-logout-link:focus {
    background: #ffffff;
    color: #ffc107;
    box-shadow: 0 0.45rem 1rem rgba(31, 51, 73, 0.22);
}
.app-navbar .navbar-brand {
    color: #ffffff;
}
.login-page {
    min-height: 100dvh;
    overflow-x: hidden;
    background: #061d4a;
}
.login-background {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 86% 12%, rgba(0, 202, 255, 0.62), transparent 28rem),
        linear-gradient(90deg, rgba(5, 24, 70, 0.98) 0%, rgba(5, 24, 70, 0.76) 34%, rgba(10, 126, 205, 0.34) 100%),
        url("../img/login-campus.jpeg") center / cover no-repeat;
}
.login-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 13, 45, 0.08), rgba(3, 25, 75, 0.46)),
        radial-gradient(circle at 11% 8%, transparent 0 11rem, rgba(255, 255, 255, 0.14) 11.1rem 11.18rem, transparent 11.3rem);
}
.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(18rem, 0.86fr) minmax(22rem, 1fr);
    grid-template-rows: 1fr auto auto;
    gap: clamp(1rem, 3vw, 3rem);
    min-height: 100dvh;
    padding: clamp(1rem, 3vw, 3rem) clamp(1rem, 5vw, 5rem) 1.4rem;
}
.login-brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-brand-content {
    max-width: 26rem;
    color: #ffffff;
    text-align: center;
}
.login-logo {
    width: clamp(7rem, 10vw, 10rem);
    height: clamp(7rem, 10vw, 10rem);
    object-fit: contain;
    margin-bottom: 1.55rem;
    filter: drop-shadow(0 1rem 1.8rem rgba(0, 0, 0, 0.38));
}
.login-welcome {
    margin: 0 0 0.8rem;
    color: #50d8ff;
    font-size: 1.05rem;
}
.login-brand-content h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}
.login-brand-content h1 span {
    display: block;
    color: #4bd8ff;
}
.login-brand-copy {
    max-width: 22rem;
    margin: 1.35rem auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.03rem;
    line-height: 1.65;
}
.login-access-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    width: min(100%, 31rem);
    padding: clamp(1.4rem, 3vw, 2.7rem);
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 1.35rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.57), rgba(255, 255, 255, 0.25));
    box-shadow: 0 1.8rem 4rem rgba(2, 18, 55, 0.38);
    backdrop-filter: blur(16px) saturate(145%);
}
.login-user-icon {
    display: grid;
    place-items: center;
    width: 5.8rem;
    height: 5.8rem;
    margin: 0 auto 1.35rem;
    border: 1px solid rgba(55, 216, 255, 0.85);
    border-radius: 50%;
    background: rgba(241, 252, 255, 0.72);
    box-shadow: 0 0 0 0.45rem rgba(64, 215, 255, 0.16), 0 0.8rem 2rem rgba(0, 104, 180, 0.2);
    color: #2168f3;
    font-size: 2.3rem;
}
.login-card-heading {
    margin-bottom: 1.6rem;
    text-align: center;
}
.login-card-heading h2 {
    margin: 0 0 0.55rem;
    color: #061d4a;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 0;
}
.login-card-heading p {
    margin: 0;
    color: rgba(6, 29, 74, 0.72);
    font-weight: 600;
}
.login-form {
    display: grid;
    gap: 1.05rem;
}
.login-field .form-label {
    margin-bottom: 0.45rem;
    color: #081f52;
    font-weight: 800;
}
.login-input-wrap {
    display: grid;
    grid-template-columns: 2.6rem 1fr auto;
    align-items: center;
    min-height: 3.65rem;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden;
}
.login-input-wrap > i {
    color: #1f65f2;
    font-size: 1.25rem;
    text-align: center;
}
.login-input-wrap .form-control {
    min-height: 3.55rem;
    border: 0;
    background: transparent;
    color: #071d48;
    font-weight: 600;
    box-shadow: none;
}
.login-input-wrap .form-control::placeholder {
    color: rgba(7, 29, 72, 0.48);
}
.login-password-toggle {
    width: 3.2rem;
    height: 3.55rem;
    border: 0;
    background: transparent;
    color: #35547f;
    font-size: 1.2rem;
}
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #102553;
    font-weight: 700;
}
.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.login-remember input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #2563ff;
}
.login-muted-link {
    color: #2563ff;
    text-align: right;
}
.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 3.65rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    background: linear-gradient(100deg, #3157ff 0%, #00c8ee 100%);
    box-shadow: 0 0.9rem 1.7rem rgba(0, 105, 229, 0.28);
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 900;
}
.login-submit:hover,
.login-submit:focus {
    color: #ffffff;
    filter: brightness(1.04);
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(7, 29, 72, 0.74);
    font-weight: 700;
}
.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(7, 29, 72, 0.24);
}
.login-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.45rem;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.26);
    color: #245cff;
    font-weight: 900;
}
.login-home-link:hover,
.login-home-link:focus {
    border-color: rgba(37, 99, 255, 0.55);
    background: rgba(255, 255, 255, 0.42);
    color: #113ad2;
}
.login-alert {
    border: 1px solid rgba(255, 171, 179, 0.8);
    border-radius: 0.75rem;
    background: rgba(255, 232, 235, 0.86);
}
.login-benefits {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: center;
    margin-top: auto;
}
.login-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
    padding: 0.6rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}
.login-benefit:last-child {
    border-right: 0;
}
.login-benefit > i {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(40, 108, 255, 0.2);
    color: #62b9ff;
    font-size: 1.55rem;
}
.login-benefit strong,
.login-benefit span {
    display: block;
}
.login-benefit strong {
    font-weight: 900;
}
.login-benefit span {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}
.login-footer-text {
    grid-column: 1 / -1;
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    font-size: 0.92rem;
    font-weight: 500;
}
.btn i {
    margin-right: 0.35rem;
}
.btn .bi-eye,
.btn .bi-eye-slash {
    margin-right: 0;
}
.btn {
    border-radius: 0.45rem;
    font-weight: 600;
}
.btn-icon {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
}
.btn-icon i {
    margin-right: 0;
}
.action-icon-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.action-icon-group form {
    display: inline-flex;
    margin: 0;
}
.rut-cell {
    min-width: 7.8rem;
    white-space: nowrap;
}
.btn-success {
    border-color: #157ea8;
    background: linear-gradient(180deg, #1d9dcc 0%, #157ea8 100%);
    color: #ffffff;
}
.btn-success:hover,
.btn-success:focus {
    border-color: #116a8f;
    background: linear-gradient(180deg, #22abd9 0%, #116f96 100%);
    color: #ffffff;
}
.btn-outline-success {
    border-color: #1685b1;
    color: #126f96;
}
.btn-outline-success:hover,
.btn-outline-success:focus {
    border-color: #1685b1;
    background: #1685b1;
    color: #ffffff;
}
.login-home-link {
    order: 2;
    background: rgba(255, 255, 255, 0.72);
}
.text-success {
    color: #126f96 !important;
}
.bg-success {
    background-color: #1685b1 !important;
}
.alert-success {
    border-color: #9ed9ee;
    background-color: #e8f8fd;
    color: #0d526f;
}
.table-success {
    --bs-table-bg: #d9f0f8;
    --bs-table-color: #123c55;
    --bs-table-border-color: #abd7e8;
}
.card {
    border-radius: 0.75rem;
}
.navbar-brand,
.nav-link {
    font-weight: 600;
}
.table-schedule {
    border-collapse: separate;
    border-spacing: 0;
}
.table-schedule th,
.table-schedule td {
    border: 1px solid #dbe7d8;
}
.table-schedule th {
    background: #176b98;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
}
.table-schedule td {
    min-width: 180px;
    padding: 0.65rem;
    vertical-align: middle;
}
.schedule-block {
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}
.schedule-block:hover {
    transform: translateY(-1px);
}
.schedule-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.schedule-card {
    --schedule-accent: #1d9dcc;
    --schedule-soft: #eefaff;
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 170px;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid var(--schedule-accent);
    border-left-width: 0.55rem;
    border-radius: 0.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)),
        linear-gradient(135deg, var(--schedule-soft), #ffffff 58%);
    padding: 1rem;
    box-shadow: 0 0.45rem 1.15rem rgba(31, 51, 73, 0.12);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.schedule-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 0.32rem;
    background: var(--schedule-accent);
}
.schedule-card.schedule-block:hover {
    transform: translateY(-2px);
    border-color: var(--schedule-accent);
    box-shadow: 0 0.85rem 1.6rem rgba(29, 157, 204, 0.18);
}
.schedule-card-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
}
.schedule-card-title {
    font-weight: 700;
    color: #123c55;
}
.schedule-card-time {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    color: #365437;
}
.schedule-card-date {
    margin: 0.9rem 0;
    color: #3c5140;
    font-size: 0.95rem;
}
.schedule-card-body {
    min-height: 2.25rem;
}
.schedule-card-hours {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}
.schedule-card-hour {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    border: 1px solid #d7e7ee;
    border-radius: 0.55rem;
    background: #ffffff;
    padding: 0.5rem 0.6rem;
}
.schedule-card-hour strong,
.schedule-card-hour span,
.schedule-card-hour small {
    display: block;
}
.schedule-card-hour strong {
    color: #123c55;
    font-size: 0.88rem;
}
.schedule-card-hour span {
    color: #365437;
    font-size: 0.82rem;
}
.schedule-card-hour__status {
    text-align: right;
}
.schedule-card-hour__status span {
    color: #1f3349;
    font-weight: 700;
}
.schedule-card-hour__status small {
    color: #607487;
    font-size: 0.74rem;
}
.schedule-card-hour.is-free {
    border-color: #bfe7d3;
    background: #f5fff9;
}
.schedule-card-hour.is-reserved {
    border-color: #f3bdc5;
    background: #fff5f6;
}
.schedule-card-hour.is-owned {
    border-color: #b7d9ee;
    background: #f1f8ff;
}
.schedule-card-disabled,
.schedule-card-closed {
    --schedule-accent: #94a3b8;
    --schedule-soft: #f1f5f9;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.96)),
        linear-gradient(135deg, var(--schedule-soft), #ffffff 60%);
    color: #66716a;
}
.schedule-card-reserved {
    --schedule-accent: #dc3545;
    --schedule-soft: #fff1f2;
}
.schedule-card-owned {
    --schedule-accent: #1685b1;
    --schedule-soft: #ecfeff;
}
.schedule-card-partial {
    --schedule-accent: #f59e0b;
    --schedule-soft: #fff7ed;
}
#adminReservationHourChoiceWrap {
    display: none;
}
.block-disabled {
    background-color: #f0f0f0;
    color: #6c757d;
    cursor: not-allowed;
}
.block-closed {
    background-color: #dee2e6;
    color: #6c757d;
}
.block-reserved {
    background-color: #dc3545;
    color: #ffffff;
}
.block-owned {
    background-color: #1685b1;
    color: #ffffff;
}
.block-free {
    background-color: #ffffff;
}
.block-label {
    background: #e8f8fd;
    font-weight: 700;
}
.weekly-calendar-modal .modal-content {
    border: 0;
    border-radius: 0.85rem;
    background: #f8fafc;
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.24);
}
.weekly-calendar-modal .modal-dialog {
    max-width: min(96vw, 1280px);
}
.weekly-calendar-modal .modal-header {
    border-bottom: 1px solid #dbe5ef;
    background: #ffffff;
    border-radius: 0.85rem 0.85rem 0 0;
    padding: 1.1rem 1.25rem;
}
.weekly-calendar-modal .modal-body {
    padding: 0.85rem 1rem;
}
.weekly-calendar-modal .modal-footer {
    border-top: 1px solid #dbe5ef;
    background: #ffffff;
    border-radius: 0 0 0.85rem 0.85rem;
}
.weekly-calendar-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d5e0ea;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.weekly-calendar-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #ffffff;
    color: #1f3349;
    font-family: inherit;
}
.weekly-calendar-table th,
.weekly-calendar-table td {
    height: 48px;
    border-right: 1px solid #d5e0ea;
    border-bottom: 1px solid #d5e0ea;
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
}
.weekly-calendar-col-index {
    width: 2.35rem;
}
.weekly-calendar-col-time {
    width: 6.2rem;
}
.weekly-calendar-col-day {
    width: calc((100% - 8.55rem) / 5);
}
.weekly-calendar-table th:last-child,
.weekly-calendar-table td:last-child {
    border-right: 0;
}
.weekly-calendar-table tbody tr:last-child th,
.weekly-calendar-table tbody tr:last-child td {
    border-bottom: 0;
}
.weekly-calendar-table thead th {
    background: #eef5fb;
    color: #1f3349;
    text-align: center;
    font-weight: 700;
}
.weekly-calendar-table .weekly-calendar-day {
    background: #dcecf7;
    color: #123c55;
    letter-spacing: 0;
}
.weekly-calendar-month-row th {
    height: 34px;
    padding: 0;
    background: #123c55;
    color: #ffffff;
    font-size: 0.95rem;
}
.weekly-calendar-month-row th:first-child {
    background: #eef5fb;
}
.weekly-calendar-index {
    width: 2.35rem;
    min-width: 2.35rem;
    max-width: 2.35rem;
    padding-right: 0.2rem !important;
    padding-left: 0.2rem !important;
    text-align: center;
    color: #41566b;
}
.weekly-calendar-time-heading {
    width: 6.2rem;
}
.weekly-calendar-time {
    width: 6.2rem;
    min-width: 6.2rem;
    max-width: 6.2rem;
    text-align: center;
    white-space: nowrap;
    color: #263f58;
    font-weight: 600;
}
.weekly-calendar-break,
.weekly-calendar-break-row .weekly-calendar-time,
.weekly-calendar-break-row .weekly-calendar-index {
    background: #f1f4f7;
    color: #607487;
    font-weight: 700;
}
.weekly-calendar-break {
    text-align: center;
    color: #607487;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.weekly-calendar-reserved,
.weekly-calendar-owned {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    color: #1f3349;
    font-size: 0.78rem;
    line-height: 1.2;
}
.weekly-calendar-owned {
    background: #eef6ff;
    border-left-color: #2f80c2;
}
.weekly-calendar-reserved strong,
.weekly-calendar-reserved span,
.weekly-calendar-owned strong,
.weekly-calendar-owned span,
.weekly-calendar-owned em {
    display: block;
}
.weekly-calendar-owned em {
    color: #1f6ca8;
    font-style: normal;
    font-weight: 700;
}
.weekly-calendar-free {
    background: #ffffff;
}
.weekly-calendar-table tbody tr:hover .weekly-calendar-free {
    background: #f8fafc;
}
.reservation-window-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--reservation-window-border);
    border-left: 0.45rem solid var(--reservation-window-accent);
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--reservation-window-bg), #ffffff 72%);
    box-shadow: 0 0.45rem 1.1rem rgba(31, 51, 73, 0.1);
}
.reservation-window-card--closed {
    --reservation-window-accent: #f59e0b;
    --reservation-window-border: #fde68a;
    --reservation-window-bg: #fffbeb;
    color: #713f12;
}
.reservation-window-card--open {
    --reservation-window-accent: #1685b1;
    --reservation-window-border: #a5e7f8;
    --reservation-window-bg: #ecfeff;
    color: #123c55;
}
.reservation-window-card__icon {
    display: inline-grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 2.45rem;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--reservation-window-accent);
    font-size: 1.25rem;
}
.reservation-window-card__content {
    min-width: 0;
}
.reservation-window-card__title {
    margin: 0 0 0.25rem;
    font-weight: 800;
    color: inherit;
}
.reservation-window-card__text {
    margin: 0;
    color: inherit;
}
.reservation-window-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}
.reservation-window-card__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}
.reservation-note {
    font-size: 0.95rem;
}
.reservation-form-modal {
    z-index: 1200;
}
.reservation-form-modal .modal-dialog {
    max-width: 760px;
}
.reservation-form-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 0.8rem;
    background: #f8fbfd;
    box-shadow: 0 1.2rem 3rem rgba(18, 60, 85, 0.28);
}
.reservation-form-modal__header {
    align-items: center;
    border-bottom: 0;
    background: linear-gradient(135deg, #176b98, #1d9dcc);
    color: #ffffff;
    padding: 1rem 1.15rem;
}
.reservation-form-modal__eyebrow {
    margin: 0 0 0.2rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.reservation-form-modal .modal-title {
    font-weight: 800;
}
.reservation-form-modal .modal-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem 1.15rem;
}
.reservation-form-modal .modal-body > .mb-3 {
    margin-bottom: 0 !important;
}
.reservation-form-modal .modal-body > .mb-3:nth-last-of-type(1) {
    grid-column: 1 / -1;
}
.reservation-form-modal .form-label {
    margin-bottom: 0.25rem;
    color: #27465e;
    font-size: 0.88rem;
    font-weight: 800;
}
.reservation-form-modal .form-control,
.reservation-form-modal .form-select {
    border-color: #c8d9e4;
    background-color: #ffffff;
}
.reservation-form-modal input[readonly] {
    background: #edf7fb;
    color: #123c55;
    font-weight: 400;
}
.reservation-form-modal__footer {
    justify-content: space-between;
    border-top: 1px solid #d9e7ef;
    background: #ffffff;
    padding: 0.85rem 1.15rem;
}
.reservation-expired-modal .modal-content {
    border: 0;
    border-radius: 0.8rem;
    box-shadow: 0 1.2rem 2.8rem rgba(113, 63, 18, 0.22);
}
.reservation-expired-modal .modal-header {
    border-bottom: 1px solid #fde68a;
    background: #fffbeb;
    color: #713f12;
}
.reservation-expired-modal .modal-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
}
.reservation-expired-modal .modal-title i {
    color: #f59e0b;
}
.reserve-slot.disabled,
.reserve-slot:disabled {
    pointer-events: none;
    opacity: 0.65;
}
.badge-status {
    font-size: 0.85rem;
}
.teacher-form .form-control,
.teacher-form .form-select {
    max-width: 100%;
}
.teacher-form .input-group {
    max-width: 18rem;
}
.user-form-card .card-body {
    padding: 1rem;
}
.user-form-card .card-title {
    margin-bottom: 0.65rem;
}
.teacher-form .form-label {
    margin-bottom: 0.25rem;
}
.teacher-form .form-text {
    margin-top: 0.25rem;
    font-size: 0.78rem;
}
.teacher-form #selectedSubjectsList {
    min-height: 1.6rem;
}
.teacher-actions--form {
    margin-top: 0.35rem !important;
}
.teacher-created-modal .modal-content {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2.5rem rgba(31, 51, 73, 0.24);
}
.teacher-created-modal .modal-header {
    border-bottom: 1px solid #cfe7f1;
    background: #e8f8fd;
    color: #0d526f;
}
.teacher-created-modal .modal-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
}
.teacher-created-modal .modal-title i {
    color: #1685b1;
}
.user-action-floating-message {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 1400;
    max-width: min(26rem, calc(100vw - 2rem));
    margin: 0;
    border: 1px solid #9ed9ee;
    border-left: 0.35rem solid #1685b1;
    border-radius: 0.75rem;
    background: #f0fbff;
    box-shadow: 0 1rem 2.4rem rgba(31, 51, 73, 0.22);
    color: #0d526f;
    font-weight: 700;
    padding: 0.9rem 1rem;
}
.user-action-floating-message::before {
    content: "\F26A";
    display: inline-block;
    margin-right: 0.45rem;
    font-family: "bootstrap-icons";
}
.user-action-floating-message.is-error {
    border-color: #f0b4b9;
    border-left-color: #dc3545;
    background: #fff5f6;
    color: #8a1f2a;
}
.user-action-floating-message.is-error::before {
    content: "\F623";
}
.teacher-created-access {
    padding: 0.9rem 1rem;
    border: 1px solid #b9d9e7;
    border-radius: 0.6rem;
    background: #f2fbfe;
}
.teacher-created-access code {
    color: #c2185b;
    font-weight: 700;
}
.teacher-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.change-password-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.teacher-status-field {
    max-width: 18rem;
}
.user-form-card {
    border: 1px solid #d7e7ef;
    border-radius: 0.75rem;
}
.user-form-card .card-body {
    padding: 0.85rem 1rem 0.9rem;
}
.user-form-card .card-title {
    margin-bottom: 0.55rem;
    color: #0f7198 !important;
    font-size: 1.05rem;
    font-weight: 800;
}
.user-form-card .teacher-form > .row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.52rem 0.75rem;
    align-items: start;
    margin: 0;
}
.user-form-card .teacher-form > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
}
.user-form-card .user-form-name {
    grid-column: span 4;
}
.user-form-card .user-form-rut {
    grid-column: span 2;
}
.user-form-card .user-form-subjects {
    grid-column: span 3;
}
.user-form-card .user-form-username {
    grid-column: span 3;
}
.user-form-card .user-form-role {
    grid-column: span 2;
}
.user-form-card .user-form-password {
    grid-column: span 3;
}
.user-form-card .user-form-status {
    grid-column: span 2;
}
.user-form-card .user-form-submit {
    grid-column: 9 / -1;
    align-self: end;
    justify-content: flex-end;
    margin-top: 0 !important;
}
.user-form-card .teacher-form .form-label {
    margin-bottom: 0.22rem;
    color: #102f52;
    font-size: 0.88rem;
    font-weight: 700;
}
.user-form-card .teacher-form .form-control,
.user-form-card .teacher-form .form-select,
.user-form-card .teacher-form .btn {
    min-height: 2.35rem;
    font-size: 0.92rem;
}
.user-form-card .teacher-form .input-group {
    max-width: none;
}
.user-form-card .teacher-form .form-text {
    margin-top: 0.22rem;
    color: #526b7d;
    font-size: 0.72rem;
    line-height: 1.35;
}
.user-form-card .teacher-form #selectedSubjectsList {
    min-height: 1.15rem;
    gap: 0.35rem !important;
    margin-top: 0.35rem !important;
}
.user-form-card .teacher-form #selectedSubjectsList .badge {
    padding: 0.32rem 0.48rem;
    border-radius: 0.35rem;
    font-size: 0.72rem;
}
.user-form-card .teacher-actions--form {
    margin-top: 0 !important;
}
.user-form-card .teacher-actions--form .btn {
    min-height: 2.35rem;
    padding-right: 1.1rem !important;
    padding-left: 1.1rem !important;
}
@media (max-width: 1200px) {
    .user-form-card .user-form-name {
        grid-column: span 5;
    }
    .user-form-card .user-form-rut {
        grid-column: span 3;
    }
    .user-form-card .user-form-subjects {
        grid-column: span 4;
    }
    .user-form-card .user-form-username,
    .user-form-card .user-form-password {
        grid-column: span 4;
    }
    .user-form-card .user-form-role,
    .user-form-card .user-form-status {
        grid-column: span 3;
    }
    .user-form-card .user-form-submit {
        grid-column: 8 / -1;
    }
}
@media (max-width: 768px) {
    .user-form-card .teacher-form > .row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .user-form-card .teacher-form > .row > [class*="user-form-"] {
        grid-column: 1 / -1;
    }
    .user-form-card .teacher-actions--form {
        align-items: stretch;
        justify-content: stretch;
    }
    .user-form-card .teacher-actions--form .btn {
        width: 100%;
    }
}
.table code {
    white-space: nowrap;
}
.toast-custom {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1080;
}
input,
select,
textarea,
.form-control,
.form-select {
    font-size: 1rem;
}
.admin-autocomplete {
    position: relative;
}
.admin-autocomplete-list {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    display: none;
    max-height: 13rem;
    overflow-y: auto;
    border: 1px solid #b9d9e7;
    border-radius: 0.45rem;
    background: #ffffff;
    box-shadow: 0 0.55rem 1.1rem rgba(31, 51, 73, 0.16);
}
.admin-autocomplete-list.is-open {
    display: block;
}
.admin-autocomplete-option {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #edf4f8;
    background: #ffffff;
    color: #1f3349;
    padding: 0.55rem 0.7rem;
    text-align: left;
}
.admin-autocomplete-option:last-child {
    border-bottom: 0;
}
.admin-autocomplete-option:hover,
.admin-autocomplete-option:focus {
    background: #e8f8fd;
    color: #0d526f;
    outline: 0;
}
.admin-autocomplete-empty {
    padding: 0.55rem 0.7rem;
    color: #607487;
}
@media (max-width: 1199px) {
    .table-schedule td {
        min-width: 140px;
    }
    .weekly-calendar-modal .modal-dialog {
        max-width: calc(100vw - 1.25rem);
        margin: 0.6rem auto;
    }
    .weekly-calendar-modal .modal-header {
        padding: 0.8rem 1rem;
    }
    .weekly-calendar-modal .modal-body {
        padding: 0.7rem 0.8rem;
    }
    .weekly-calendar-table {
        min-width: 720px;
    }
    .weekly-calendar-table th,
    .weekly-calendar-table td {
        height: 44px;
        padding: 0.35rem 0.4rem;
        font-size: 0.86rem;
    }
    .weekly-calendar-col-index,
    .weekly-calendar-index {
        width: 2.1rem;
        min-width: 2.1rem;
        max-width: 2.1rem;
    }
    .weekly-calendar-col-time,
    .weekly-calendar-time,
    .weekly-calendar-time-heading {
        width: 5.8rem;
        min-width: 5.8rem;
        max-width: 5.8rem;
    }
}
@media (max-width: 768px) {
    .login-shell {
        padding: 0.85rem;
    }
    .login-background {
        opacity: 0.5;
    }
    .login-card .card-body {
        padding: 1.25rem !important;
    }
    .login-logo {
        width: 86px;
        height: 86px;
        margin-bottom: 0.75rem !important;
    }
    .login-card h1 {
        font-size: 1.15rem;
    }
    .login-card .form-label {
        margin-bottom: 0.35rem;
    }
    .login-card .mb-3,
    .login-card .mb-4 {
        margin-bottom: 0.9rem !important;
    }
    .login-card .btn,
    .login-card .form-control,
    .login-card .input-group-text {
        min-height: 42px;
    }
    .container {
        max-width: 100%;
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }
    .app-navbar > .container-fluid {
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }
    .app-page {
        width: calc(100% - 1.7rem);
        margin-right: 0.85rem;
        margin-left: 0.85rem;
        padding-top: 5rem;
    }
    .container-fluid {
        padding-right: 0.65rem;
        padding-left: 0.65rem;
    }
    .navbar {
        margin-bottom: 0.85rem !important;
    }
    .navbar-collapse {
        padding-top: 0.75rem;
    }
    .app-navbar .nav-link {
        margin: 0.2rem 0;
        padding: 0.75rem 0.85rem;
        background: rgba(255, 255, 255, 0.08);
    }
    .app-brand-logo {
        width: 36px;
        height: 36px;
    }
    .app-brand span {
        font-size: 0.95rem;
    }
    .card {
        border-radius: 1rem;
    }
    .card-body {
        padding: 1rem;
    }
    .card-body > .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.85rem;
    }
    .card-body > .d-flex.justify-content-between .btn,
    .card-body > .d-flex.justify-content-between button {
        width: 100%;
    }
    h3,
    h4 {
        font-size: 1.2rem;
    }
    .alert {
        border-radius: 0.85rem;
        padding: 0.8rem;
    }
    .schedule-card-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .schedule-card {
        min-height: auto;
        border-radius: 1rem;
        padding: 0.95rem;
    }
    .schedule-card-header {
        align-items: center;
    }
    .schedule-card-date {
        margin: 0.75rem 0;
    }
    .reserve-slot,
    #reservation-form .btn {
        width: 100%;
        min-height: 44px;
    }
    .reservation-form-modal .modal-body {
        grid-template-columns: 1fr;
        padding: 0.9rem;
    }
    .reservation-form-modal__footer,
    #reservation-form .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    .teacher-actions,
    .change-password-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .teacher-actions .btn,
    .change-password-actions .btn {
        width: 100%;
        min-height: 44px;
    }
    .table-responsive {
        overflow: visible;
    }
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) {
        border: 0;
    }
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) thead {
        display: none;
    }
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) tbody,
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) tr,
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) td {
        display: block;
        width: 100%;
    }
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) tr {
        margin-bottom: 0.85rem;
        border: 1px solid #cfe4ef;
        border-radius: 1rem;
        background: #ffffff;
        box-shadow: 0 0.25rem 0.9rem rgba(31, 51, 73, 0.08);
        overflow: hidden;
    }
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) td {
        border: 0;
        border-bottom: 1px solid #edf3f7;
        padding: 0.7rem 0.85rem;
    }
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2rem;
        color: #607487;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
    }
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) td:last-child {
        border-bottom: 0;
    }
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) td .btn {
        width: 100%;
        margin: 0.25rem 0;
        min-height: 42px;
    }
    .table-responsive table:not(.table-schedule):not(.admin-reservations-table) td form {
        display: block !important;
    }
    .admin-reservations-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-reservations-table {
        min-width: 980px;
        white-space: nowrap;
    }
    .table-schedule td,
    .table-schedule th {
        font-size: 0.82rem;
        padding: 0.45rem;
    }
    .weekly-calendar-table {
        min-width: 680px;
    }
    .weekly-calendar-table th,
    .weekly-calendar-table td {
        height: 42px;
        font-size: 0.78rem;
    }
}
@media (max-width: 420px) {
    .login-card .card-body {
        padding: 1rem !important;
    }
    .login-logo {
        width: 74px;
        height: 74px;
    }
    .login-card h1 {
        font-size: 1.05rem;
    }
    .schedule-card-title {
        font-size: 1rem;
    }
    .badge {
        white-space: normal;
        text-align: center;
    }
}

.table-responsive table:not(.table-schedule) td .action-icon-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.table-responsive table:not(.table-schedule) td .action-icon-group .btn-icon {
    width: 2.15rem;
    min-width: 2.15rem;
    height: 2.15rem;
    min-height: 2.15rem;
    display: inline-grid;
    place-items: center;
    margin: 0;
    padding: 0;
}

.table-responsive table:not(.table-schedule) td .action-icon-group form {
    display: inline-flex !important;
    margin: 0;
}

@media (max-width: 768px) {
    .table-responsive table:not(.table-schedule) td .action-icon-group {
        gap: 0.55rem;
        padding-top: 0.15rem;
    }

    .table-responsive table:not(.table-schedule) td .action-icon-group .btn-icon {
        width: 2.75rem;
        min-width: 2.75rem;
        height: 2.75rem;
        min-height: 2.75rem;
        border-radius: 0.6rem;
    }
}

/* Login 2026 refresh */
.login-home-link {
    order: initial;
    background: rgba(255, 255, 255, 0.26);
}
.login-password-toggle i {
    margin-right: 0;
}
@media (max-width: 920px) {
    .login-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        padding: 1.3rem;
    }
    .login-brand-panel {
        align-items: flex-end;
    }
    .login-brand-content {
        max-width: 34rem;
    }
    .login-logo {
        width: 6.6rem;
        height: 6.6rem;
        margin-bottom: 0.9rem;
    }
    .login-brand-copy {
        margin-top: 0.85rem;
    }
    .login-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .login-benefit:nth-child(even) {
        border-right: 0;
    }
}
@media (max-width: 768px) {
    .login-background {
        opacity: 1;
    }
    .login-shell {
        padding: 1rem;
    }
    .login-brand-panel {
        display: none;
    }
    .login-access-panel {
        align-items: center;
    }
    .login-card {
        width: min(100%, 28rem);
        padding: 1.15rem;
        border-radius: 1rem;
    }
    .login-user-icon {
        width: 4.6rem;
        height: 4.6rem;
        font-size: 1.9rem;
    }
    .login-card-heading h2 {
        font-size: 1.55rem;
    }
    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }
    .login-muted-link {
        text-align: left;
    }
    .login-benefits {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .login-benefit {
        min-height: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
        border-right: 0;
    }
    .login-footer-text {
        font-size: 0.8rem;
    }
}
@media (max-width: 420px) {
    .login-card {
        padding: 1rem;
    }
    .login-input-wrap {
        grid-template-columns: 2.25rem 1fr auto;
    }
    .login-benefits {
        display: none;
    }
}

/* Login compact desktop/notebook scale */
.login-shell {
    gap: clamp(0.75rem, 2vw, 1.8rem);
    padding: clamp(0.75rem, 2vh, 1.6rem) clamp(1.5rem, 5vw, 4rem) 0.75rem;
}
.login-logo {
    width: clamp(5.4rem, 7vw, 7.4rem);
    height: clamp(5.4rem, 7vw, 7.4rem);
    margin-bottom: 0.95rem;
}
.login-brand-content h1 {
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    line-height: 1.14;
}
.login-brand-copy {
    max-width: 20rem;
    margin-top: 0.95rem;
    font-size: 0.95rem;
    line-height: 1.55;
}
.login-card {
    width: min(100%, 27rem);
    padding: clamp(1rem, 1.8vw, 1.55rem);
    border-radius: 1.05rem;
}
.login-user-icon {
    width: 4.15rem;
    height: 4.15rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 0 0 0.35rem rgba(64, 215, 255, 0.14), 0 0.55rem 1.4rem rgba(0, 104, 180, 0.18);
    font-size: 1.75rem;
}
.login-card-heading {
    margin-bottom: 1rem;
}
.login-card-heading h2 {
    margin-bottom: 0.35rem;
    font-size: 1.55rem;
}
.login-card-heading p {
    font-size: 0.9rem;
}
.login-form {
    gap: 0.72rem;
}
.login-field .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
}
.login-input-wrap {
    min-height: 3rem;
}
.login-input-wrap .form-control {
    min-height: 2.95rem;
}
.login-password-toggle {
    height: 2.95rem;
}
.login-options {
    font-size: 0.88rem;
}
.login-submit {
    min-height: 3.05rem;
    font-size: 1rem;
}
.login-home-link {
    min-height: 2.95rem;
}
.login-divider {
    gap: 0.65rem;
    font-size: 0.9rem;
}
.login-benefits {
    gap: 0.65rem;
}
.login-benefit {
    min-height: 3.25rem;
    gap: 0.75rem;
    padding: 0.35rem 0.75rem;
}
.login-benefit > i {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.25rem;
}
.login-benefit strong {
    font-size: 0.9rem;
}
.login-benefit span {
    margin-top: 0.12rem;
    font-size: 0.8rem;
}
.login-footer-text {
    margin-top: 0;
    font-size: 0.82rem;
}
@media (max-height: 760px) and (min-width: 769px) {
    .login-shell {
        grid-template-rows: 1fr auto;
        padding-top: 0.65rem;
        padding-bottom: 0.55rem;
    }
    .login-brand-copy {
        display: none;
    }
    .login-benefits {
        display: none;
    }
    .login-footer-text {
        grid-column: 1 / -1;
        margin-top: -0.25rem;
    }
}

/* Login reference-fit refinement: keep all reference content visible on notebooks. */
.login-page {
    overflow: hidden;
}
.login-shell {
    align-items: center;
    grid-template-columns: minmax(18rem, 0.78fr) minmax(20rem, 0.9fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: clamp(0.45rem, 1.5vh, 0.9rem) clamp(1.5rem, 5vw, 4.5rem);
    padding: clamp(0.5rem, 2vh, 1.2rem) clamp(1.25rem, 5vw, 4.5rem) 0.55rem;
}
.login-brand-panel {
    justify-content: flex-start;
    padding-left: clamp(0rem, 2vw, 2rem);
}
.login-brand-content {
    max-width: 22rem;
}
.login-logo {
    width: clamp(5.8rem, 8vw, 8rem);
    height: clamp(5.8rem, 8vw, 8rem);
    margin-bottom: clamp(0.45rem, 1.2vh, 0.9rem);
}
.login-welcome {
    margin-bottom: clamp(0.35rem, 0.9vh, 0.65rem);
    font-size: clamp(0.9rem, 1.25vw, 1.05rem);
}
.login-brand-content h1 {
    font-size: clamp(1.55rem, 2.45vw, 2.25rem);
    line-height: 1.16;
}
.login-brand-copy {
    display: block;
    max-width: 20rem;
    margin-top: clamp(0.5rem, 1.3vh, 0.95rem);
    font-size: clamp(0.82rem, 1.08vw, 0.95rem);
    line-height: 1.46;
}
.login-card {
    width: clamp(21rem, 31.5vw, 27rem);
    padding: clamp(0.78rem, 2vh, 1.35rem) clamp(1rem, 2.5vw, 1.7rem);
    border-radius: 1.05rem;
}
.login-user-icon {
    width: clamp(3.15rem, 7.5vh, 5rem);
    height: clamp(3.15rem, 7.5vh, 5rem);
    margin-bottom: clamp(0.45rem, 1.2vh, 0.9rem);
    font-size: clamp(1.35rem, 3.2vh, 2rem);
}
.login-card-heading {
    margin-bottom: clamp(0.55rem, 1.5vh, 1.1rem);
}
.login-card-heading h2 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
}
.login-card-heading p {
    font-size: clamp(0.78rem, 1.2vw, 0.92rem);
}
.login-form {
    gap: clamp(0.45rem, 1.05vh, 0.78rem);
}
.login-field .form-label {
    margin-bottom: 0.22rem;
    font-size: clamp(0.82rem, 1.1vw, 0.92rem);
}
.login-input-wrap {
    min-height: clamp(2.4rem, 6.3vh, 3.35rem);
}
.login-input-wrap .form-control {
    min-height: clamp(2.35rem, 6.1vh, 3.25rem);
}
.login-password-toggle {
    height: clamp(2.35rem, 6.1vh, 3.25rem);
}
.login-options,
.login-divider {
    font-size: clamp(0.78rem, 1.05vw, 0.9rem);
}
.login-submit {
    min-height: clamp(2.45rem, 6.25vh, 3.35rem);
    font-size: clamp(0.9rem, 1.25vw, 1.02rem);
}
.login-home-link {
    min-height: clamp(2.35rem, 5.95vh, 3.15rem);
}
.login-benefits {
    display: grid;
    gap: clamp(0.35rem, 1vw, 0.75rem);
}
.login-benefit {
    min-height: clamp(2.15rem, 5.2vh, 3.2rem);
    gap: clamp(0.45rem, 1vw, 0.75rem);
    padding: 0.25rem clamp(0.45rem, 1.2vw, 0.8rem);
}
.login-benefit > i {
    width: clamp(1.85rem, 4.5vh, 2.55rem);
    height: clamp(1.85rem, 4.5vh, 2.55rem);
    font-size: clamp(1rem, 2.35vh, 1.3rem);
}
.login-benefit strong {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
}
.login-benefit span {
    margin-top: 0.08rem;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
}
.login-footer-text {
    margin-top: 0;
    font-size: clamp(0.72rem, 1vw, 0.84rem);
}
@media (max-height: 760px) and (min-width: 769px) {
    .login-shell {
        grid-template-rows: minmax(0, 1fr) auto auto;
    }
    .login-brand-copy {
        display: block;
    }
    .login-benefits {
        display: grid;
    }
    .login-footer-text {
        margin-top: 0;
    }
}
@media (max-width: 768px) {
    .login-page {
        overflow-y: auto;
    }
    .login-shell {
        min-height: 100dvh;
        padding: 0.85rem;
    }
    .login-card {
        width: min(100%, 24rem);
    }
    .login-benefits {
        display: none;
    }
}

/* Login mobile layout */
@media (max-width: 768px) {
    .login-page {
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 100dvh;
    }
    .login-background {
        opacity: 1;
        background-position: center top;
    }
    .login-background::after {
        background:
            linear-gradient(180deg, rgba(3, 18, 58, 0.76), rgba(3, 18, 58, 0.92)),
            radial-gradient(circle at 15% 4%, transparent 0 7rem, rgba(255, 255, 255, 0.12) 7.05rem 7.12rem, transparent 7.2rem);
    }
    .login-shell {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.62rem;
        min-height: 100dvh;
        padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
    }
    .login-brand-panel {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0;
    }
    .login-brand-content {
        max-width: 22rem;
        text-align: center;
    }
    .login-logo {
        width: clamp(4.1rem, 17vw, 5.1rem);
        height: clamp(4.1rem, 17vw, 5.1rem);
        margin: 0 auto 0.35rem;
    }
    .login-welcome {
        margin: 0 0 0.18rem;
        font-size: 0.82rem;
    }
    .login-brand-content h1 {
        font-size: clamp(1.25rem, 6.2vw, 1.65rem);
        line-height: 1.12;
    }
    .login-brand-copy {
        display: block;
        max-width: 19rem;
        margin: 0.32rem auto 0;
        font-size: 0.76rem;
        line-height: 1.32;
    }
    .login-access-panel {
        align-items: flex-start;
        width: 100%;
    }
    .login-card {
        width: min(100%, 22.5rem);
        margin: 0 auto;
        padding: 0.78rem;
        border-radius: 0.95rem;
    }
    .login-user-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.45rem;
        font-size: 1.32rem;
        box-shadow: 0 0 0 0.24rem rgba(64, 215, 255, 0.14), 0 0.45rem 1rem rgba(0, 104, 180, 0.18);
    }
    .login-card-heading {
        margin-bottom: 0.52rem;
    }
    .login-card-heading h2 {
        margin-bottom: 0.14rem;
        font-size: 1.24rem;
    }
    .login-card-heading p {
        font-size: 0.78rem;
    }
    .login-alert {
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
    }
    .login-form {
        gap: 0.46rem;
    }
    .login-field .form-label {
        margin-bottom: 0.18rem;
        font-size: 0.82rem;
    }
    .login-input-wrap {
        grid-template-columns: 2.3rem minmax(0, 1fr) auto;
        min-height: 2.52rem;
        border-radius: 0.62rem;
    }
    .login-input-wrap > i {
        font-size: 1rem;
    }
    .login-input-wrap .form-control {
        min-height: 2.48rem;
        padding-right: 0.45rem;
        font-size: 0.92rem;
    }
    .login-password-toggle {
        width: 2.7rem;
        height: 2.48rem;
        font-size: 1rem;
    }
    .login-options {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem;
        font-size: 0.76rem;
    }
    .login-remember {
        gap: 0.38rem;
        white-space: nowrap;
    }
    .login-remember input {
        width: 1rem;
        height: 1rem;
    }
    .login-muted-link {
        max-width: 10rem;
        text-align: right;
    }
    .login-submit {
        min-height: 2.62rem;
        border-radius: 0.62rem;
        font-size: 0.92rem;
    }
    .login-divider {
        gap: 0.45rem;
        font-size: 0.78rem;
    }
    .login-home-link {
        min-height: 2.5rem;
        border-radius: 0.62rem;
        font-size: 0.9rem;
    }
    .login-benefits {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 22.5rem);
        margin: 0.1rem auto 0;
        gap: 0.35rem;
    }
    .login-benefit {
        min-height: auto;
        padding: 0.38rem;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 0.65rem;
        background: rgba(6, 29, 74, 0.25);
    }
    .login-benefit > i {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 1rem;
    }
    .login-benefit strong {
        font-size: 0.72rem;
    }
    .login-benefit span {
        font-size: 0.66rem;
    }
    .login-footer-text {
        width: min(100%, 22.5rem);
        margin: 0 auto;
        font-size: 0.68rem;
        line-height: 1.25;
    }
}
@media (max-width: 380px) {
    .login-shell {
        padding-right: 0.55rem;
        padding-left: 0.55rem;
    }
    .login-brand-copy {
        display: none;
    }
    .login-card {
        padding: 0.68rem;
    }
    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }
    .login-muted-link {
        max-width: none;
        text-align: left;
    }
}
