/* Brand surfaces stay light so the official red and blue mark retains its contrast. */
@media screen {
    .tms-login-page {
        background: radial-gradient(ellipse at 8% 8%, #e6ecf8 0, transparent 42%),
            radial-gradient(ellipse at 95% 90%, #e6ecf8 0, transparent 40%), #f5f7fc;
    }
    .tms-login-page .tms-login {
        min-height: 100vh; min-height: 100dvh; max-width: 1160px; margin: auto;
        padding: 28px 32px 36px; display: grid; grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr; gap: 24px 64px; align-items: center;
    }
    .tms-login-masthead { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; text-align: center; }
    .tms-login-page .tms-login-logo { display: block; width: 112px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .tms-login-page .tms-login-logo img { mix-blend-mode: multiply; }
    .tms-login-masthead > span { color: #596682; font-size: 13px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
    .tms-login-page .tms-login-story {
        align-self: stretch; justify-content: center; min-height: 530px; padding: 48px 40px;
        background: radial-gradient(ellipse at 100% 0, #3c5fc0 0, transparent 60%), linear-gradient(155deg, #22304f, #213f9a);
        border: 1px solid #264296; border-radius: 4px; box-shadow: none;
    }
    .tms-login-page .tms-login-story-content { padding: 0; }
    .tms-login-page .tms-login-story .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .12em; color: #dfe4ef; }
    .tms-login-story .eyebrow > span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #c1cce4; }
    .tms-login-page .tms-login-story h2 { font-size: clamp(32px, 3.3vw, 44px); line-height: 1.14; letter-spacing: -.035em; margin-bottom: 24px; }
    .tms-login-page .tms-login-story p { font-size: 15px; color: #dfe4ef; }
    .tms-login-page .tms-login-features { margin-top: 32px; gap: 20px; }
    .tms-login-page .tms-login-features > div { font-size: 13px; line-height: 1.65; }
    .tms-login-page .tms-login-features svg { border: 1px solid #ffffff1f; background: #ffffff08; }
    .tms-login-journey { display: flex; align-items: center; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #ffffff24; position: relative; font-size: 13px; color: #dfe4ef; }
    .tms-login-journey i { height: 1px; background: #9aa8c6; flex: 1; }
    .tms-login-page .tms-login-story > small { margin-top: 20px; font-size: 13px; letter-spacing: .06em; color: #b9c5de; }
    .tms-login-page .tms-login-side { min-width: 0; min-height: 0; gap: 20px; padding: 0; background: transparent; }
    .tms-login-page .tms-login-card { width: 100%; max-width: 460px; padding: 32px; border-radius: 4px; border-color: #dfe4ef; box-shadow: none; }
    .tms-login-page .tms-login-card h1 { font-size: 26px; letter-spacing: -.035em; margin-bottom: 8px; }
    .tms-login-page .tms-login-card > .muted { font-size: 13px; line-height: 1.65; margin-bottom: 24px; }
    .tms-login-page .tms-login-tabs { background: #edf0f6; border: 1px solid #e6ecf8; padding: 5px; }
    .tms-login-page .tms-login-tabs a[aria-selected="true"]::after { display: none; }
    .tms-login-page .tms-login .field input { min-height: 46px; border-color: #9aa8c6; border-radius: 4px; background: #ffffff; }
    .tms-login-page .tms-password-field button { top: 5px; right: 5px; }
    .tms-login-page .tms-login .button { min-height: 48px; border-radius: 4px; background: #34498a; border-color: #34498a; box-shadow: none; }
    .tms-login-page .tms-login .button:hover { background: #2a4ec3; border-color: #2a4ec3; }
    .tms-login-page .tms-login-note { margin-top: 22px; padding-top: 18px; }
    .tms-login-page .auth-google-button, .tms-login-page .tms-passkey-button { border-radius: 4px; }
    .tms-login-page .tms-login-home:hover { color: #34498a; text-decoration: underline; }

    .shell { background: #f5f7fc; }
    .shell .sidebar, .workspace-enhanced .shell .sidebar { background: #f7f9fd; border-right-color: #dfe4ef; }
    .shell .sidebar-brand-row { height: 88px; min-height: 88px; background: #edf0f6; border-bottom-color: #dfe4ef; }
    .shell .brand .brand-logo { height: 58px; max-height: 58px; max-width: 100px; mix-blend-mode: multiply; }
    .shell .sidebar-tms-badge { right: 14px; border: 0; background: #e6ecf8; color: #4f669c; font-size: 13px; }
    .shell .sidebar-search { background: #ffffff; border-color: #b9c5de; border-radius: 4px; }
    .shell .sidebar-footer { background: transparent; color: #6a7795; }
    .shell .nav-caption, .shell .tms-nav-single-link { min-height: 46px; }
    .shell .nav-link.active { background: #e6ecf8; color: #294cba; }
    .shell .topbar {
        display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        min-height: 88px; padding: 10px 28px; gap: 16px; background: #f7f9fd;
        border-bottom-color: #dfe4ef; box-shadow: none;
    }
    .shell .topbar-leading { grid-column: 1; min-width: 0; gap: 12px; }
    .shell .topbar-heading > strong { font-size: 13px; color: #5f6c89; font-weight: 550; }
    .topbar-brand { grid-column: 2; display: block; justify-self: center; line-height: 0; border-radius: 4px; }
    .topbar-brand img { display: block; width: 78px; height: auto; mix-blend-mode: multiply; }
    .shell .account { grid-column: 3; justify-self: end; margin: 0; order: 0; gap: 10px; }
    .shell .icon-button { border-radius: 4px; background: #ffffff; border-color: #7b88a8; }
    .shell .icon-button:hover { background: #edf0f6; border-color: #b9c5de; }
    .shell .tms-account-tools { display: block; }
    .shell .tms-account-tools > div { padding: 8px; border-radius: 4px; box-shadow: 0 12px 36px #2b355020; }
    .shell .account-logout-form { margin-top: 5px; padding-top: 5px; border-top: 1px solid #e6ecf8; }
    .shell .account-logout { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: #924147; text-align: left; font-size: 13px; cursor: pointer; }
    .shell .account-logout:hover { background: #fdf3f5; }
    .shell .account-avatar.account-attendance-link { width: 40px; height: 40px; border-color: #dfe4ef; }
    .shell .card, .shell .tms-panel { border-color: #dfe4ef; border-radius: 4px; box-shadow: none; }
    .shell .tms-panel-head { padding-top: 20px; padding-bottom: 20px; }
    .shell .tms-stat { border-color: #dfe4ef; border-radius: 4px; box-shadow: none; }
    .shell .tms-stat::before { inset: auto 20px 0; height: 2px; opacity: .6; }
    .shell .tms-stat:hover, .shell .tms-flow-step:hover { border-color: #93a1be; background: #ffffff; box-shadow: none; }
    .shell .tms-flow-step { background: #ffffff; border-color: #dfe4ef; border-radius: 4px; }
    .shell .button { border-radius: 4px; }
    .shell .page-intro h1 { letter-spacing: -.035em; }
    .shell .workspace-footer { display: flex; color: #6b7896; border-color: #dfe4ef; font-size: 13px; margin-top: 32px; }
}
@media screen and (min-width: 901px) {
    .shell.sidebar-collapsed .sidebar-brand-row { padding: 0; }
    .shell.sidebar-collapsed .brand .brand-short { height: 58px; width: 64px; }
    .shell.sidebar-collapsed .brand .brand-short .brand-logo { height: auto; width: 58px; max-height: 58px; }
    .shell.sidebar-collapsed .sidebar-tms-badge { display: none; }
}
@media screen and (max-width: 1150px) {
    .tms-login-page .tms-login { gap: 24px 32px; padding: 24px; }
    .tms-login-page .tms-login-story { padding: 36px 28px; }
    .shell .topbar-heading { display: none; }
}
@media screen and (max-width: 900px) {
    .shell .topbar { padding: 10px 20px; }
    .workspace-enhanced .shell .sidebar-brand-row { padding-left: 64px; padding-right: 64px; }
    .workspace-enhanced .shell .sidebar-tms-badge { display: none; }
    .shell .account { flex-wrap: nowrap; }
    .tms-login-page .tms-login { grid-template-columns: minmax(0, 1fr); max-width: 540px; gap: 24px; }
    .tms-login-page .tms-login-story { display: none; }
    .tms-login-page .tms-login-card { max-width: none; }
}
@media screen and (max-width: 600px) {
    .tms-login-page .tms-login { padding: 24px 16px; gap: 22px; align-content: start; }
    .tms-login-page .tms-login-logo { width: 98px; }
    .tms-login-page .tms-login-masthead { gap: 10px; }
    .tms-login-page .tms-login-masthead > span { font-size: 13px; letter-spacing: .12em; }
    .tms-login-page .tms-login-card { padding: 26px 22px; border-radius: 4px; }
    .tms-login-page .tms-login-card h1 { font-size: 23px; }
    .tms-login-page .tms-login .field input { font-size: 16px; }
    .shell .topbar { padding: 8px 12px; gap: 8px; min-height: 78px; }
    .shell .topbar-brand img { width: 64px; }
    .shell .topbar-leading { order: 0; }
    .shell .account { gap: 5px; }
    .shell .account .icon-button { width: 32px; height: 36px; min-width: 32px; min-height: 36px; padding: 0; }
    .shell .account-avatar.account-attendance-link { width: 34px; height: 34px; }
    .shell .menu-toggle { width: 40px; height: 40px; padding: 0; }
    .shell .tms-panel-head { padding: 16px; }
    .shell .workspace-footer { font-size: 13px; }
}
