[hidden] { display: none !important; }
:root {
    --bg: #f4f6f8;
    --panel: #fff;
    --line: #d8dee6;
    --text: #1f2933;
    --muted: #667382;
    --accent: #2457c5;
    --accent-dark: #153f96;
    --soft: #e8f0ff;
    --green: #16794a;
    --red: #b83227;
    --amber: #9b6718;
    --shadow: 0 10px 30px rgba(31, 41, 51, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(36, 87, 197, .35);
    outline-offset: 2px;
}
.skip-link {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 1000;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 10px 14px;
}
.skip-link:focus { top: 12px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
aside {
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 40;
}
.brand {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(135deg, #f9fbff, #edf3ff);
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.brand strong { font-size: 20px; }
.brand span, .userbox span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.userbox {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
aside nav { display: flex; flex-direction: column; gap: 5px; }
aside nav a { padding: 11px 12px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 14px; }
aside nav a:hover, aside nav a.active { background: var(--soft); color: var(--accent-dark); text-decoration: none; }
.logout-form { margin-top: auto; }
.logout { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--red); background: #fff; font-weight: 700; cursor: pointer; }
.link-button { border: 0; padding: 0; background: transparent; color: var(--accent); cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.mobile-nav-toggle { display: none; }
main { padding: 24px; min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.top h1 { margin: 0 0 6px; font-size: clamp(25px, 3vw, 30px); }
.top p { margin: 0; color: var(--muted); max-width: 900px; line-height: 1.5; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card, .panel, .table-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.card { padding: 18px; }
.card .label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card .value { font-size: 28px; font-weight: 800; }
.card .value.health-version { font-size: 17px; overflow-wrap: anywhere; }
.card .meta { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.4; }
.card-flat { box-shadow: none; }
.panel, .table-card { padding: 18px; margin-bottom: 18px; }
.panel-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.panel-header h3 { margin: 0 0 5px; }
.panel-header p { margin: 0; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar-spaced { margin-top: 16px; }
.btn {
    border: 0;
    border-radius: 9px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
}
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: #fafbfc; color: var(--text); border: 1px solid var(--line); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.button-block { width: 100%; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { background: #f8fafc; text-align: left; white-space: nowrap; }
tbody tr:hover td { background: #fcfdff; }
.filters, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.filters { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); margin-bottom: 14px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 700; }
.field small, .hint { font-size: 12px; color: var(--muted); line-height: 1.4; }
input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
}
label > input[type="checkbox"], label > input[type="radio"] { width: auto; }
pre { max-width: 68vw; white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 87, 197, .11); outline: 0; }
input:disabled, select:disabled, textarea:disabled { background: #f2f4f7; color: #586575; }
.field.full { grid-column: 1 / -1; }
.check-grid { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.check-grid label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 500; }
.check-grid input { width: auto; margin-top: 2px; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.green { background: #e8f7ee; color: var(--green); }
.badge.red { background: #fdeceb; color: var(--red); }
.badge.amber { background: #fff5dc; color: var(--amber); }
.badge.blue { background: var(--soft); color: var(--accent); }
.badge.gray { background: #eef1f4; color: #52606d; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line); }
.flash.success { background: #eef9f2; border-color: #bfe4cb; }
.flash.error { background: #fff1ef; border-color: #efc0bb; }
.flash.warning { background: #fff8e5; border-color: #efd99a; }
.empty { padding: 26px; text-align: center; color: var(--muted); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(120deg, #f7f9fc, #eef3fb); padding: 24px; }
.login-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }
.install-card { width: min(900px, 100%); }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.requirements { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.login-card h1 { margin: 0 0 8px; }
.login-card p { color: var(--muted); line-height: 1.5; }
.login-card .field { margin: 14px 0; }
.centered-link { text-align: center; margin: 14px 0; }
.notice { padding: 12px; border: 1px dashed #bfd0fb; background: #f5f8ff; border-radius: 10px; color: #24458f; font-size: 13px; }
.notice-compact { padding: 7px 10px; }
.notice-warning { border-color: #ebc872; background: #fff8e4; color: #704f00; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.searchbox, .employee-picker { position: relative; }
.directory-results, .picker-results {
    position: absolute;
    z-index: 25;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: var(--shadow);
    max-height: 280px;
    overflow: auto;
}
.directory-results button, .picker-results button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 10px; cursor: pointer; }
.directory-results button:hover, .picker-results button:hover { background: #f1f5fb; }
.employee-selections { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.employee-selections:empty { margin: 0; }
.selection-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 999px; background: var(--soft); color: var(--accent-dark); font-size: 12px; }
.selection-chip button { border: 0; background: transparent; color: var(--red); cursor: pointer; font-weight: 900; padding: 0 2px; }
.repeater, .year-amounts { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fafbfc; }
.repeat-row { display: grid; grid-template-columns: 1.5fr .5fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.year-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.metric-list { display: grid; gap: 8px; }
.metric-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.metric-item:last-child { border-bottom: 0; }
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pagination-summary { color: var(--muted); font-size: 13px; margin-left: auto; }
.timeline { display: grid; gap: 12px; }
.timeline-item { border-left: 3px solid var(--soft); padding: 4px 0 4px 14px; }
.timeline-item small { color: var(--muted); }
.timeline-item p { margin: 8px 0 0; white-space: normal; }
.review-comment { border-left: 4px solid var(--red); background: #fff7f5; padding: 14px; border-radius: 8px; margin-bottom: 16px; }
.review-comment h3 { margin-top: 0; }
.kpi-box { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.employee-filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; margin-bottom: 12px; }
.employee-filter-bar .btn { width: 100%; }
.department-filter-field { position: relative; z-index: 20; }
.department-search-control { position: relative; }
.record-department-picker { position: relative; }
.department-search-input-wrap { position: relative; }
.department-search-input-wrap::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 11px;
    height: 11px;
    border: 2px solid var(--muted);
    border-radius: 50%;
    transform: translateY(-65%);
    pointer-events: none;
}
.department-search-input-wrap::after {
    content: "";
    position: absolute;
    left: 25px;
    top: calc(50% + 4px);
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--muted);
    transform: rotate(45deg);
    transform-origin: left center;
    pointer-events: none;
}
.department-search-input-wrap input { padding-left: 42px; }
.department-search-results {
    position: absolute;
    z-index: 80;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(31, 41, 51, .16);
}
.department-search-result {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.department-search-result:last-child { border-bottom: 0; }
.department-search-result:hover, .department-search-result:focus { background: var(--soft); outline: 0; }
.department-search-result span { display: block; font-weight: 700; line-height: 1.3; }
.department-search-result small { display: block; margin-top: 3px; color: var(--muted); }
.department-search-empty { padding: 12px; color: var(--muted); font-size: 13px; }
.employee-scope-summary { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.employee-table { min-width: 1120px; }
.employee-table th, .employee-table td { font-size: 13px; }
.computed-value {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
    color: var(--text);
    font-weight: 700;
}
.young-age-range { display: block; margin-top: 5px; color: var(--muted); white-space: nowrap; }
.enrichment-name { display: flex; flex-direction: column; gap: 3px; min-width: 190px; }
.enrichment-name strong { line-height: 1.35; }
.enrichment-name small { color: var(--muted); }
.enrichment-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.enrichment-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.enrichment-provenance {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    overflow-wrap: anywhere;
}
.enrichment-provenance > :first-child { margin-top: 0; }
.enrichment-provenance > :last-child { margin-bottom: 0; }
.enrichment-lookup-links, .enrichment-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.scientific-profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.identifier-link { display: inline-flex; width: fit-content; margin-top: 5px; color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.identifier-link:hover, .identifier-link:focus { text-decoration: underline; }
.provider-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.provider-metric { display: flex; min-height: 92px; flex-direction: column; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.provider-metric strong { font-size: 14px; }
.provider-metric span { color: var(--muted); font-size: 13px; }
.provider-metric a { margin-top: auto; color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.provider-metric a:hover, .provider-metric a:focus { text-decoration: underline; }
.enrichment-detail-actions { justify-content: space-between; margin-bottom: 14px; }
.enrichment-table { min-width: 980px; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.bulk-bar input[type="checkbox"], table input[type="checkbox"] { width: auto; }
.code-list { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; columns: 2; padding-left: 20px; }
.secret-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 1px; word-break: break-all; }
.danger-zone { border-color: #efc0bb; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mb-18 { margin-bottom: 18px; }
.nowrap { white-space: nowrap; }
footer { color: var(--muted); font-size: 12px; padding: 14px 2px; }

@media (max-width: 1180px) {
    .cards { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
    .employee-table th, .employee-table td { font-size: 12px; }
}

@media (max-width: 860px) {
    .layout { display: block; }
    aside { position: fixed; left: -310px; width: 290px; transition: left .18s ease; box-shadow: var(--shadow); }
    aside.open { left: 0; }
    .mobile-nav-toggle { display: block; position: sticky; top: 8px; z-index: 45; margin: 8px 12px 0 auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 9px 13px; font-weight: 700; }
    main { padding: 16px; }
    .split, .form-grid, .install-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .repeat-row { grid-template-columns: 1fr; }
    .year-row { grid-template-columns: 1fr; }
    .panel-header { flex-direction: column; }
    .enrichment-source-grid { grid-template-columns: 1fr; }
    .provider-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .enrichment-detail-actions { align-items: stretch; flex-direction: column; }
    .enrichment-detail-actions .btn { width: 100%; }
}

@media (max-width: 560px) {
    main { padding: 12px; }
    .cards { grid-template-columns: 1fr; }
    .panel, .table-card { padding: 13px; border-radius: 11px; }
    .login-card { padding: 20px; }
    .toolbar .btn { width: 100%; }
    .pagination-summary { width: 100%; margin-left: 0; }
    .code-list { columns: 1; }
    .provider-metrics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Research Portal 1.3.10: branded scientific login page with inline KazNMU logo and password visibility toggle */
.portal-login-body {
    --login-brand: #854b7e;
    --login-brand-dark: #68385f;
    --login-brand-soft: #f7eef5;
    --login-ink: #17212b;
}
.portal-login-body .login-page {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(20px, 4vw, 52px);
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 16%, rgba(133, 75, 126, .16), transparent 30%),
        radial-gradient(circle at 88% 78%, rgba(36, 87, 197, .10), transparent 32%),
        linear-gradient(145deg, #f8f5f8 0%, #f4f7fb 52%, #eef3f9 100%);
}
.portal-login-body .login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .35;
    background-image:
        linear-gradient(rgba(103, 75, 99, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 75, 99, .08) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.68), transparent 86%);
}
.portal-login-body .login-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(390px, .86fr);
    width: min(1120px, 100%);
    min-height: 630px;
    overflow: hidden;
    border: 1px solid rgba(103, 75, 99, .14);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 26px 70px rgba(44, 35, 48, .14);
}
.portal-login-body .login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(34px, 4vw, 54px);
    overflow: hidden;
    border-right: 1px solid rgba(103, 75, 99, .12);
    background:
        radial-gradient(circle at 88% 20%, rgba(133, 75, 126, .10), transparent 28%),
        linear-gradient(155deg, #ffffff 0%, #fcf8fb 58%, #f5ebf2 100%);
}
.portal-login-body .login-visual::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -145px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(133, 75, 126, .14);
    border-radius: 50%;
    box-shadow:
        0 0 0 44px rgba(133, 75, 126, .035),
        0 0 0 92px rgba(133, 75, 126, .025);
}
.portal-login-body .login-science-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(133, 75, 126, .18) 1.2px, transparent 1.3px);
    background-size: 28px 28px;
    opacity: .22;
    mask-image: linear-gradient(115deg, transparent 3%, #000 52%, transparent 94%);
}
.portal-login-body .login-science-art {
    position: absolute;
    right: -18px;
    bottom: -12px;
    width: min(520px, 78%);
    color: rgba(133, 75, 126, .18);
    pointer-events: none;
}
.portal-login-body .login-brand-block,
.portal-login-body .login-visual-copy {
    position: relative;
    z-index: 2;
}
.portal-login-body .login-university-logo {
    display: block;
    width: min(590px, 100%);
    height: auto;
    max-height: 162px;
    object-fit: contain;
    object-position: left center;
}
.portal-login-body .login-visual-copy {
    max-width: 610px;
    padding-top: 54px;
}
.portal-login-body .login-eyebrow,
.portal-login-body .login-form-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--login-brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.portal-login-body .login-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: var(--login-brand);
}
.portal-login-body .login-visual h1 {
    margin: 16px 0 12px;
    color: var(--login-ink);
    font-size: clamp(40px, 5.2vw, 64px);
    line-height: 1.02;
    letter-spacing: -.035em;
}
.portal-login-body .login-lead {
    max-width: 590px;
    margin: 0;
    color: #5e6874;
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.65;
}
.portal-login-body .login-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}
.portal-login-body .login-topic-list span {
    padding: 8px 11px;
    border: 1px solid rgba(133, 75, 126, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #684f63;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(5px);
}
.portal-login-body .login-shell > .login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: clamp(38px, 4.5vw, 58px);
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.portal-login-body .login-form-heading {
    margin-bottom: 22px;
}
.portal-login-body .login-form-heading h2 {
    margin: 8px 0 8px;
    color: var(--login-ink);
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -.02em;
}
.portal-login-body .login-form-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}
.portal-login-body .login-form .field {
    margin: 15px 0;
}
.portal-login-body .login-form .field > label {
    color: #303943;
    font-size: 13px;
}
.portal-login-body .login-form input {
    min-height: 48px;
    padding: 12px 13px;
    border-color: #d7dce3;
    border-radius: 11px;
    background: #fbfcfd;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.portal-login-body .login-form input:hover {
    border-color: #c2c9d2;
    background: #fff;
}
.portal-login-body .login-form input:focus {
    border-color: var(--login-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(133, 75, 126, .12);
}

.portal-login-body .password-field {
    position: relative;
}
.portal-login-body .password-field > input {
    padding-right: 52px;
}
.portal-login-body .password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6f5868;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.portal-login-body .password-toggle:hover {
    background: rgba(133, 75, 126, .08);
    color: var(--login-brand-dark);
}
.portal-login-body .password-toggle:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(133, 75, 126, .18);
}
.portal-login-body .password-toggle-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.portal-login-body .password-toggle .password-toggle-icon-hidden {
    display: none;
}
.portal-login-body .password-toggle[data-visible="1"] .password-toggle-icon-open {
    display: none;
}
.portal-login-body .password-toggle[data-visible="1"] .password-toggle-icon-hidden {
    display: block;
}
.portal-login-body .login-submit {
    min-height: 48px;
    margin-top: 6px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--login-brand), #714166);
    box-shadow: 0 10px 24px rgba(133, 75, 126, .18);
}
.portal-login-body .login-submit:hover {
    filter: brightness(.98);
    box-shadow: 0 12px 28px rgba(133, 75, 126, .23);
}
.portal-login-body .centered-link {
    margin: 16px 0 18px;
}
.portal-login-body .centered-link a {
    color: var(--login-brand-dark);
    font-weight: 700;
}
.portal-login-body .login-access-note {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid #e6d8e2;
    border-radius: 12px;
    background: #fbf7fa;
}
.portal-login-body .login-access-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #efe2eb;
    color: var(--login-brand-dark);
    font-size: 14px;
    font-weight: 900;
}
.portal-login-body .login-access-note p {
    margin: 1px 0 0;
    color: #68727d;
    font-size: 12px;
    line-height: 1.5;
}
.portal-login-body .flash {
    margin-bottom: 16px;
}
.portal-login-body button:focus-visible,
.portal-login-body a:focus-visible,
.portal-login-body input:focus-visible {
    outline-color: rgba(133, 75, 126, .42);
}

@media (max-width: 900px) {
    .portal-login-body .login-page {
        align-items: flex-start;
        padding: 18px;
    }
    .portal-login-body .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 22px;
    }
    .portal-login-body .login-visual {
        min-height: 370px;
        padding: 30px;
        border-right: 0;
        border-bottom: 1px solid rgba(103, 75, 99, .12);
    }
    .portal-login-body .login-university-logo {
        width: min(540px, 100%);
        max-height: 130px;
    }
    .portal-login-body .login-visual-copy {
        max-width: 640px;
        padding-top: 42px;
    }
    .portal-login-body .login-science-art {
        width: 410px;
        opacity: .72;
    }
    .portal-login-body .login-shell > .login-card {
        padding: 34px 30px 38px;
    }
}

@media (max-width: 560px) {
    .portal-login-body .login-page {
        padding: 10px;
    }
    .portal-login-body .login-shell {
        border-radius: 18px;
    }
    .portal-login-body .login-visual {
        min-height: 312px;
        padding: 24px 22px;
    }
    .portal-login-body .login-university-logo {
        width: 100%;
        max-height: 98px;
    }
    .portal-login-body .login-visual-copy {
        padding-top: 30px;
    }
    .portal-login-body .login-visual h1 {
        margin-top: 12px;
        font-size: 38px;
    }
    .portal-login-body .login-lead {
        font-size: 15px;
        line-height: 1.55;
    }
    .portal-login-body .login-topic-list {
        gap: 6px;
        margin-top: 20px;
    }
    .portal-login-body .login-topic-list span {
        padding: 6px 8px;
        font-size: 11px;
    }
    .portal-login-body .login-science-art {
        right: -95px;
        bottom: -55px;
        width: 360px;
    }
    .portal-login-body .login-shell > .login-card {
        padding: 30px 22px 28px;
    }
}
