/* Teacher login — LearnHub-style layout (scoped; does not alter global bundles) */
html {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

:root {
    /* LearnHub left panel — reference primary #0056D2 */
    --tlr-lh-blue: #0055d4;
    --tlr-lh-blue-top: #0a62de;
    --tlr-lh-blue-bottom: #0048c4;
    --tlr-lh-card-blue: rgba(21, 101, 216, 0.92);
    --tlr-lh-subtext: #a8c8ff;
    --tlr-blue: #3b82f6;
    --tlr-blue-deep: #1d4ed8;
    --tlr-blue-soft: #e8f1fb;
    --tlr-accent: #1565c0;
    --tlr-ref-primary: #2563eb;
    --tlr-text: #111827;
    --tlr-muted: #6b7280;
    --tlr-input-bg: #f3f4f6;
    --tlr-radius: 14px;
    --tlr-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --tlr-header-h: 56px;
}

.tlr-page {
    position: relative;
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: var(--tlr-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.tlr-page #snow-container {
    z-index: 50;
}

.tlr-header {
    position: sticky;
    top: 0;
    z-index: 60;
    flex-shrink: 0;
    min-height: var(--tlr-header-h);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding: 0.65rem clamp(1rem, 2.5vw, 1.5rem);
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    gap: 0.5rem 1rem;
}

.tlr-header-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.tlr-nav-pilot.tlr-btn-outline,
.tlr-nav-student.tlr-btn-outline {
    color: #0f172a;
    font-weight: 600;
    border-color: #d1d5db;
    text-decoration: none !important;
}

.tlr-nav-pilot.tlr-btn-outline:hover,
.tlr-nav-student.tlr-btn-outline:hover {
    color: #0f172a;
    border-color: #9ca3af;
    background: #f9fafb;
}

.tlr-nav-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tlr-nav-ico .fal,
.tlr-nav-ico .fas {
    font-size: 1rem;
    line-height: 1;
}

/* Icons ≠ label color (Pilot vs Student use different accent hues) */
.tlr-nav-pilot .tlr-nav-ico {
    color: #0ea5e9;
}

.tlr-nav-pilot .tlr-nav-ico .fal,
.tlr-nav-pilot .tlr-nav-ico .fas {
    color: inherit;
}

.tlr-nav-student .tlr-nav-ico {
    color: #7c3aed;
}

.tlr-nav-student .tlr-nav-ico .fal,
.tlr-nav-student .tlr-nav-ico .fas {
    color: inherit;
}

.tlr-nav-teacher-active {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 1.15rem;
    border-radius: 10px;
    background: var(--tlr-ref-primary);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    user-select: none;
}

.tlr-nav-teacher-active__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.95);
}

.tlr-nav-teacher-active__ico .fal,
.tlr-nav-teacher-active__ico .fas {
    font-size: 1.05rem;
    line-height: 1;
    color: inherit !important;
}

.tlr-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.tlr-brand-logo {
    display: block;
    height: auto;
    width: auto;
    max-height: 40px;
    max-width: 200px;
    object-fit: contain;
}

.tlr-header-nav .fal,
.tlr-header-nav .fas {
    font-size: 1.02rem;
}

.tlr-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--tlr-text);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.tlr-btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: var(--tlr-text);
    text-decoration: none;
}

.tlr-main {
    flex: 1;
    display: flex;
    min-height: 0;
}

.tlr-panel-left {
    display: none;
    flex: 1 1 45%;
    max-width: 45%;
    min-height: 0;
    box-sizing: border-box;
    background: linear-gradient(165deg, var(--tlr-lh-blue-top) 0%, var(--tlr-lh-blue) 42%, var(--tlr-lh-blue-bottom) 100%);
    color: #fff;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: clamp(1.15rem, 2.4vh, 1.75rem) clamp(2rem, 5.75vw, 3.65rem);
}

.tlr-panel-left::before,
.tlr-panel-left::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    /* Lighter blue / white glow blobs (reference: soft circles, not dark overlays) */
}

.tlr-panel-left::before {
    width: min(92vw, 420px);
    height: min(92vw, 420px);
    top: -18%;
    right: -22%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.22) 0%, rgba(147, 197, 253, 0.18) 45%, transparent 68%);
}

.tlr-panel-left::after {
    width: min(100vw, 480px);
    height: min(100vw, 480px);
    bottom: -28%;
    left: -32%;
    background: radial-gradient(circle at 55% 55%, rgba(186, 230, 253, 0.28) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 65%);
}

.tlr-panel-inner {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: none;
    max-height: 100%;
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.5rem, 1.15vh, 0.8rem);
    min-height: 0;
    box-sizing: border-box;
    overflow: visible;
}

.tlr-panel-inner > .tlr-trust-badge {
    align-self: flex-start;
    flex-shrink: 0;
}

.tlr-trust-badge {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    width: fit-content;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, background 0.35s ease;
}

.tlr-trust-badge::before {
    content: "";
    position: absolute;
    inset: 0 0 50% 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.tlr-trust-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.tlr-trust-badge i,
.tlr-trust-badge__text {
    position: relative;
    z-index: 1;
    color: #fff;
}

.tlr-panel-head {
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 1.5vh, 1rem);
    flex-shrink: 0;
    margin-bottom: clamp(3.75rem, 9.5vh, 5.75rem);
}

.tlr-panel-title {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(1.9rem, min(3.5vw, 5vh), 2.55rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.022em;
    color: #ffffff;
    text-shadow: none;
}

.tlr-panel-title__br {
    display: block;
}

.tlr-panel-sub {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(0.9375rem, min(1.4vw, 1.9vh), 1.0625rem);
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
    max-width: none;
    color: var(--tlr-lh-subtext);
    text-shadow: none;
}

.tlr-feature-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.45rem, 1.2vh, 0.65rem);
    flex-shrink: 0;
}

.tlr-feature-card {
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: clamp(0.65rem, 1.35vh, 0.9rem) clamp(1.05rem, 2.4vw, 1.45rem);
    border-radius: 16px;
    overflow: hidden;
    background: var(--tlr-lh-card-blue);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tlr-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.tlr-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.tlr-feature-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
    color: #ffffff;
    box-shadow: none;
}

.tlr-feature-icon__svg {
    display: block;
    flex-shrink: 0;
    color: inherit;
}

.tlr-feature-body {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
    overflow: visible;
    align-self: stretch;
}

.tlr-feature-card h3 {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(0.9rem, 1.6vh, 1rem);
    font-weight: 700;
    letter-spacing: 0.006em;
    margin: 0 0 0.18rem;
    color: #ffffff;
}

.tlr-feature-card p {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    font-size: clamp(0.8rem, 1.4vh, 0.875rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--tlr-lh-subtext);
}

.tlr-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.35rem, 1vh, 0.65rem) 0.5rem;
    padding-top: clamp(0.65rem, 1.5vh, 1rem);
    margin-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

@media (min-width: 520px) {
    .tlr-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem 0.5rem;
    }
}

.tlr-stats > div {
    text-align: center;
    padding: 0.5rem 0.35rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tlr-stats > div:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* LearnHub mock: flat stat row (no glass tiles) */
.tlr-stats--ref {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(1.1rem, 2.8vw, 1.85rem);
    padding-top: clamp(1rem, 2.2vh, 1.35rem);
    margin-top: clamp(0.35rem, 1vh, 0.65rem);
    margin-left: 0;
    margin-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.tlr-stats--ref > div {
    flex: 0 0 auto;
    min-width: 0;
    text-align: left;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tlr-stats--ref > div:hover {
    transform: none;
    box-shadow: none;
}

.tlr-stats--ref .tlr-stat-val {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    font-size: clamp(1.05rem, 2.3vh, 1.28rem);
    font-weight: 700;
}

.tlr-stats--ref .tlr-stat-label {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.5625rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--tlr-lh-subtext);
    opacity: 1;
}

.tlr-stat-val {
    font-size: clamp(1.05rem, 2.5vh, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tlr-stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-top: 0.28rem;
    line-height: 1.2;
}

.tlr-panel-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}

.tlr-form-wrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(0, 0.35vh, 0.25rem) clamp(0.75rem, 2vw, 1.25rem) clamp(0.5rem, 1.5vh, 1.25rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tlr-form-wrap::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.tlr-right-foot {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0.65rem clamp(0.75rem, 2vw, 1.25rem) calc(0.65rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.65) 0%, #fff 38%);
    border-top: 1px solid #eef2f7;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.9) inset;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tlr-right-foot::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.tlr-right-foot__line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.28rem 0.4rem;
    margin: 0 auto;
    padding: 0 0.25rem;
    width: max-content;
    max-width: 100%;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(0.68rem, 1.65vw, 0.78rem);
    line-height: 1.35;
    letter-spacing: 0.015em;
    white-space: nowrap;
}

.tlr-right-foot__sym {
    font-weight: 700;
    color: #2563eb;
    margin-right: 0.02em;
}

.tlr-right-foot__year {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #64748b;
}

.tlr-right-foot__brand {
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.012em;
}

.tlr-right-foot__sep {
    color: #cbd5e1;
    font-weight: 300;
    user-select: none;
    padding: 0 0.06rem;
}

.tlr-right-foot__rights {
    font-weight: 500;
    color: #94a3b8;
}

.tlr-right-foot__version {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.88em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    color: #1d4ed8;
    background: linear-gradient(180deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.tlr-form-inner {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    margin-top: clamp(0.4rem, 3.5vh, 1.65rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.32rem, 0.95vh, 0.55rem);
}

.tlr-badge-role {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    gap: 0.5rem;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    background: var(--tlr-blue-soft);
    font-size: clamp(0.65rem, 1.05vw, 0.75rem);
    margin-bottom: 0;
    flex-shrink: 0;
}

.tlr-badge-role__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    line-height: 1;
}

.tlr-badge-role__ico .fal,
.tlr-badge-role__ico .fas {
    font-size: 0.875rem;
    line-height: 1;
    color: #0369a1;
}

.tlr-badge-role__label {
    color: #1e40af;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tlr-form-links {
    margin: clamp(0.35rem, 1.2vh, 0.75rem) 0 0;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--tlr-muted);
}

.tlr-form-links__row {
    display: block;
}

.tlr-form-links__row + .tlr-form-links__row {
    margin-top: 0.35rem;
}

.tlr-form-links__row--muted {
    font-size: 0.78rem;
    color: #9ca3af;
}

.tlr-form-links__muted {
    color: #9ca3af;
    font-weight: 500;
}

/* Override app.bundle a[target]:not(.btn) { text-decoration: underline !important; font-weight: 500 } */
.tlr-form-links a.tlr-form-links__a {
    font-weight: 700 !important;
    color: var(--tlr-ref-primary);
    text-decoration: none !important;
    -webkit-text-decoration-skip: none;
    text-decoration-skip-ink: none;
}

.tlr-form-links a.tlr-form-links__a:hover,
.tlr-form-links a.tlr-form-links__a:focus,
.tlr-form-links a.tlr-form-links__a:focus-visible,
.tlr-form-links a.tlr-form-links__a:active {
    text-decoration: none !important;
    color: #1d4ed8;
    font-weight: 700 !important;
}

.tlr-form-links a.tlr-form-links__a:visited {
    text-decoration: none !important;
    color: var(--tlr-ref-primary);
    font-weight: 700 !important;
}

.tlr-welcome-title {
    font-size: clamp(1.95rem, min(5.5vw, 6vh), 2.65rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.12;
    flex-shrink: 0;
}

.tlr-welcome-sub {
    margin: 0;
    color: var(--tlr-muted);
    font-size: clamp(0.8125rem, min(1.5vw, 1.9vh), 0.95rem);
    line-height: 1.45;
    flex-shrink: 0;
}

/* LearnHub-style soft card */
.tlr-card {
    position: relative;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    padding: clamp(0.95rem, 2vh, 1.35rem) clamp(1.15rem, 2.4vw, 1.65rem) clamp(1.05rem, 2.2vh, 1.5rem);
    border: 1px solid #e8ecf1;
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.06),
        0 18px 48px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.3s ease;
    animation: tlr-card-settle 0.7s ease-out 1;
}

@keyframes tlr-card-settle {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tlr-card:hover {
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.08),
        0 22px 56px rgba(15, 23, 42, 0.05);
}

.tlr-card .form-group {
    margin-bottom: clamp(0.62rem, 1.65vh, 1rem);
}

.tlr-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--tlr-text);
    margin-bottom: 0.4rem;
}

.tlr-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.tlr-label-row .form-label {
    margin-bottom: 0;
}

.tlr-forgot {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tlr-ref-primary);
    text-decoration: none;
    white-space: nowrap;
}

.tlr-forgot:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.tlr-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tlr-input-wrap > .fal:not(.toggle-password),
.tlr-input-wrap > .fas:not(.toggle-password) {
    position: absolute;
    left: 0.95rem;
    color: var(--tlr-muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.tlr-card .form-control {
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--tlr-input-bg);
    padding: 0.5rem 0.75rem 0.5rem 2.4rem;
    font-size: 0.875rem;
    min-height: 42px;
}

.tlr-input-wrap:has(.toggle-password) .form-control {
    padding-right: 2.85rem;
}

.tlr-card .form-control:focus {
    background: #fff;
    border-color: var(--tlr-ref-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tlr-input-wrap .toggle-password {
    position: absolute !important;
    right: 0.85rem !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--tlr-muted);
    font-size: 1rem;
    z-index: 4;
    pointer-events: auto;
    padding: 0.35rem;
    margin: -0.35rem -0.2rem -0.35rem 0;
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1;
}

.tlr-input-wrap .toggle-password:hover {
    color: var(--tlr-ref-primary);
}

.tlr-input-wrap .toggle-password:focus-visible {
    outline: 2px solid var(--tlr-ref-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.tlr-card .custom-control-label {
    color: var(--tlr-muted) !important;
    font-size: 0.875rem;
    padding-top: 0.1rem;
}

.tlr-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.tlr-remember-group .tlr-forgot--inline {
    flex-shrink: 0;
    font-size: 0.875rem;
}

.tlr-remember-group {
    margin-bottom: 0.9rem !important;
}

.tlr-card .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--tlr-ref-primary);
    border-color: var(--tlr-ref-primary);
}

.tlr-submit-group {
    margin-top: 0.15rem;
    margin-bottom: 0.7rem !important;
}

.tlr-btn-signin {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    min-height: 48px;
    border-radius: 10px;
    border: none;
    background: var(--tlr-ref-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-top: 0;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tlr-btn-signin:hover {
    background: #1d4ed8;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.tlr-btn-signin:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}

.tlr-btn-signin:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.35),
        0 4px 14px rgba(37, 99, 235, 0.28);
}

/* SSO — LUStudentsPortal / modern-auth .sso-divider + .sso-grid + .sso-btn */
.tlr-sso-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: clamp(1rem, 2.5vh, 1.5rem) 0 clamp(0.5rem, 1.2vh, 1rem);
    color: var(--tlr-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tlr-sso-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(6px, 1.8vw, 10px);
    width: 100%;
    flex-shrink: 0;
}

.tlr-sso-chip {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1.2vw, 10px);
    padding: clamp(8px, 2vw, 10px) clamp(6px, 1.5vw, 12px);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(0.72rem, 2.6vw, 0.875rem);
    font-weight: 600;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tlr-sso-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.tlr-sso-chip:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.tlr-sso-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.tlr-sso-chip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.tlr-sso-chip__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.tlr-sso-chip__icon--img img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.tlr-sso-chip__text {
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.tlr-sso-chip:hover .tlr-sso-chip__icon svg,
.tlr-sso-chip:hover .tlr-sso-chip__icon img {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Bootstrap tooltips — LU portal look; appended to body */
.tooltip.tlr-sso-tooltip {
    z-index: 1080;
}

.tooltip.tlr-sso-tooltip .tooltip-inner {
    max-width: 220px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #fff;
    text-align: center;
    background: #1e293b;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

.tooltip.tlr-sso-tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #1e293b;
}

.tooltip.tlr-sso-tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #1e293b;
}

.tooltip.tlr-sso-tooltip.bs-tooltip-left .arrow::before {
    border-left-color: #1e293b;
}

.tooltip.tlr-sso-tooltip.bs-tooltip-right .arrow::before {
    border-right-color: #1e293b;
}

.tlr-validation-summary ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

@media (min-width: 992px) and (max-height: 820px) {
    .tlr-panel-inner {
        gap: 0.45rem;
    }

    .tlr-panel-head {
        gap: 0.4rem;
        margin-bottom: clamp(2.25rem, 5.5vh, 3.5rem);
    }

    .tlr-panel-title {
        font-size: clamp(1.6rem, min(3vh, 3.2vw), 2.05rem);
    }

    .tlr-feature-list {
        gap: 0.38rem;
    }

    .tlr-feature-card {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .tlr-stats--ref {
        padding-top: 0.65rem;
        margin-top: 0.35rem;
    }
}

@media (min-width: 992px) {
    .tlr-panel-left {
        flex: 1 1 45%;
        max-width: 45%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        min-height: 0;
    }

    .tlr-panel-right {
        max-width: 55%;
        flex: 1 1 55%;
    }
}

@media (max-width: 991.98px) {
    .tlr-main {
        flex-direction: column;
    }

    .tlr-form-wrap {
        padding-top: clamp(0, 0.5vh, 0.35rem);
    }

    .tlr-form-inner {
        margin-top: clamp(0.35rem, 2.25vh, 1.35rem);
    }

    .tlr-header-nav {
        width: 100%;
        justify-content: space-between;
    }
}

/* Extra-tight vertical space (small laptop / zoomed browser) */
@media (max-height: 720px) {
    :root {
        --tlr-header-h: 52px;
    }

    .tlr-form-inner {
        margin-top: clamp(0.25rem, 2vh, 1rem);
    }

    .tlr-btn-outline,
    .tlr-nav-teacher-active {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.875rem;
    }

    .tlr-header-nav .fal,
    .tlr-header-nav .fas {
        font-size: 1rem;
    }

    .tlr-card {
        padding: clamp(0.85rem, 1.8vh, 1.2rem);
    }
}
