/* Top nav for student portal (Auth) — matches teacher login header look; no global html/body locks */
:root {
    --tlr-ref-primary: #2563eb;
    --tlr-text: #111827;
    --tlr-header-h: 56px;
}

.auth-portal-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-portal-shell .auth-layout-wrapper {
    flex: 1 1 auto;
    min-height: 0;
}

.tlr-header.auth-portal-header {
    position: relative;
    z-index: 100;
    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;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.tlr-header.auth-portal-header .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-header.auth-portal-header .tlr-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

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

.tlr-header.auth-portal-header .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: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

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

.tlr-header.auth-portal-header .tlr-nav-teacher-login.tlr-btn-outline {
    color: #0f172a;
    border-color: #d1d5db;
}

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

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

.tlr-header.auth-portal-header .tlr-nav-teacher-login .tlr-nav-ico {
    color: #2563eb;
}

.tlr-header.auth-portal-header .tlr-nav-teacher-login .tlr-nav-ico .fal,
.tlr-header.auth-portal-header .tlr-nav-teacher-login .tlr-nav-ico .fas {
    color: inherit;
}

.tlr-header.auth-portal-header .tlr-nav-student-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-header.auth-portal-header .tlr-nav-student-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-header.auth-portal-header .tlr-nav-student-active__ico .fal,
.tlr-header.auth-portal-header .tlr-nav-student-active__ico .fas {
    font-size: 1.05rem;
    line-height: 1;
    color: inherit !important;
}

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