:root {
    color-scheme: light;
    --blue: #176ff2;
    --navy: #0b1d35;
    --muted: #64748b;
    --line: #dbe3ee;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-width: 320px;
    color: #fff;
    background-color: #07111e;
    background-image: linear-gradient(115deg, rgba(3,12,22,.36), rgba(5,20,35,.24) 48%, rgba(4,13,24,.40)), url('school-digital-future.png');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #f3b64e; outline-offset: 4px; }
svg { display: block; }
.menu-icon { width: 24px; height: 24px; flex-shrink: 0; }
.site-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 10; padding: 12px; background: #fff; color: #15233a; }
.skip-link:focus { top: 12px; }
.app-header { background: #07121fbd; border-bottom: 1px solid #ffffff24; backdrop-filter: blur(12px); }
.app-header__inner, .app-main, .app-nav__inner, .home-meta { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.app-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 15px; }
.app-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app-brand img, .brand-emblem { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; padding: 8px; border: 1px solid #ffffff52; background: #fffffff0; box-shadow: 0 10px 32px #00000042; object-fit: contain; }
.brand-emblem { display: grid; place-items: center; color: #143656; }
.brand-emblem .menu-icon { width: 36px; height: 36px; }
.brand-text { display: grid; gap: 4px; }
.brand-text strong { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.brand-text small { color: #d0dbea; font-size: .77rem; }
.brand-text small:first-child { color: #b6cbe0; text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; }
.app-user { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; flex-shrink: 0; max-width: 100%; }
.app-user form { margin: 0; }
.app-user__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; background: var(--blue); }
.app-user__details { display: grid; gap: 4px; font-size: .85rem; }
.app-user__details small { color: #b9c9dd; }
.app-nav { background: #101927c7; border-bottom: 1px solid #ffffff1a; backdrop-filter: blur(12px); }
.app-nav__inner { display: flex; gap: 4px; overflow-x: auto; }
.app-nav a { padding: 15px 18px; font-size: .88rem; font-weight: 650; white-space: nowrap; color: #d9e4f1; border-bottom: 3px solid transparent; }
.app-nav a:hover, .app-nav [aria-current] { color: #fff; border-color: #f3b64e; }
.app-main { padding-block: 32px 45px; flex: 1; }
.app-main:focus { outline: none; }
.home-mode .app-header { border: 0; background: transparent; backdrop-filter: none; }
.home-mode .app-header__inner { padding-top: 24px; }
.portal-intro { text-align: center; margin: 18px auto 38px; }
.hero__eyebrow { color: #9dc9ec; font-size: .76rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 12px; }
.portal-intro h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.2rem, 7vw, 5.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; margin: 0; text-shadow: 0 8px 30px #00000080; }
.portal-intro h1 span { color: #f3b64e; }
.hero__subtitle { max-width: 700px; margin: 18px auto 0; color: #d5deea; font-size: 1.04rem; line-height: 1.65; }
.access-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.access-card { --accent: #eea52b; --accent-dark: #9a5b12; --soft: #fff4df; position: relative; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; color: #122033; padding: 24px; border: 1px solid #ffffffa6; border-radius: 20px; background: #fffffff0; box-shadow: 0 24px 65px #0000004d; backdrop-filter: blur(14px); transition: transform .25s, box-shadow .25s; }
.access-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent); }
.access-card:hover { transform: translateY(-5px); box-shadow: 0 30px 70px #00000066; }
.access-card--orar { --accent: #1677c8; --accent-dark: #0d5f9f; --soft: #e8f4fc; }
.access-card--secretariat { --accent: #20a66a; --accent-dark: #117849; --soft: #e6f8ef; }
.access-card--condica { --accent: #9b6bd3; --accent-dark: #6d3da6; --soft: #f2eafa; }
.access-card--burse { --accent: #11afd5; --accent-dark: #086c8d; --soft: #e4f6fc; }
.access-card--acte { --accent: #f04454; --accent-dark: #ad2442; --soft: #fce8ee; }
.access-card--personal { --accent: #26a893; --accent-dark: #126b60; --soft: #e2f5f0; }
.access-card--rapoarte { --accent: #7188af; --accent-dark: #425c83; --soft: #e9eef7; }
.access-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.access-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: var(--accent-dark); background: var(--soft); }
.access-card__icon .menu-icon { width: 28px; height: 28px; }
.access-card h2 { font-size: 1.15rem; line-height: 1.35; margin: 20px 0 10px; }
.access-card__description { font-size: .86rem; line-height: 1.6; color: #536174; margin: 0 0 22px; flex: 1; }
.badge { display: inline-block; padding: 5px 8px; color: #566477; background: #e9edf2; border-radius: 999px; font-size: .64rem; white-space: nowrap; }
.badge--active { color: #0c6941; background: #e0f4e9; }
.access-card__button, .access-card__pending { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 43px; padding: 11px 13px; border-radius: 11px; font-size: .83rem; font-weight: 750; }
.access-card__button { color: #fff; background: var(--accent-dark); }
.access-card__button:hover { filter: brightness(1.12); }
.access-card__pending { justify-content: center; background: #e9edf2; color: #5a6778; font-weight: 550; }
.access-card__help { display: flex; justify-content: space-between; margin-top: 15px; color: var(--accent-dark); font-size: .79rem; }
.access-card__help:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 0 24px; color: #c0ccda; font-size: .77rem; }
.live-clock { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border: 1px solid #ffffff2e; border-radius: 999px; background: #030a1280; backdrop-filter: blur(10px); white-space: nowrap; }
.live-clock .menu-icon { width: 19px; height: 19px; color: #f3b64e; }
.live-clock strong { font-variant-numeric: tabular-nums; }
.live-clock__separator { width: 1px; height: 16px; background: #ffffff3d; }
.home-credit { display: grid; gap: 6px; text-align: right; line-height: 1.5; }
.home-credit strong { color: #dce5f0; font-size: .72rem; font-weight: 550; }
.button, .app-main form button:not(.password-toggle), .login-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 17px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(110deg, #176ff2, #0753bd); font-weight: 750; font-size: .88rem; cursor: pointer; }
.button .menu-icon { width: 18px; height: 18px; }
.button--ghost { border: 1px solid #ffffff38; background: #ffffff12; white-space: nowrap; }
.button--ghost:hover { background: #ffffff26; }
.hero { border-bottom: 1px solid #ffffff29; margin: 0 0 24px; padding-bottom: 24px; }
.hero .wrap { padding: 0; }
.hero h1 { margin: 8px 0 10px; font-size: clamp(1.8rem, 4vw, 2.2rem); }
.hero p { margin: 0; max-width: 780px; color: #c5d0de; line-height: 1.7; }
.eyebrow { color: #f3b64e; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 750; }
.panel { padding: 26px; border: 1px solid #ffffff70; border-radius: 16px; color: #192d44; background: #fffffff5; box-shadow: 0 18px 45px #00000030; }
.panel a { color: #0d5f9f; text-decoration: underline; text-underline-offset: 4px; }
.panel h1 { font-size: 1.8rem; margin-top: 18px; }
.panel h2 { font-size: 1.3rem; }
.help { max-width: 800px; line-height: 1.8; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 1.4rem; }
.notice { margin-bottom: 22px; border: 1px solid #f3d895; border-radius: 10px; padding: 16px 20px; color: #684a17; background: #fff7e5; line-height: 1.65; }
.notice.success { color: #08754c; border-color: #bde6cf; background: #dcf8ea; }
.notice.errors { color: #a51d2b; border-color: #f1bdc5; background: #ffe4e7; }
.notice ul { margin-bottom: 0; padding-left: 22px; }
.app-main label { display: block; margin: 22px 0 8px; font-weight: 650; font-size: .88rem; }
.app-main input, .app-main select, .app-main textarea { width: 100%; min-height: 45px; padding: 12px; border: 1px solid #cbd5e1; border-radius: 9px; color: #192d44; background: #f8fafc; }
.app-main input:focus, .app-main select:focus, .app-main textarea:focus { outline: 3px solid #176ff226; border-color: #176ff2; background: #fff; }
.app-main input[type=file] { font-size: .85rem; }
.app-main textarea { min-height: 80px; resize: vertical; }
.muted { color: #617185; }
.form-panel { width: min(490px,100%); margin: 10px auto 26px; }
.form-panel p { color: #536174; line-height: 1.7; }
.form-panel form .full { width: 100%; margin-top: 24px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; vertical-align: top; padding: 15px 14px; border-bottom: 1px solid #dbe3ee; line-height: 1.6; }
th { color: #45576e; font-size: .71rem; text-transform: uppercase; letter-spacing: .05em; background: #e7f0ff; }
td form { min-width: 210px; }
.empty { text-align: center; padding: 40px 20px; }
.inline { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: .88rem; }
.inline a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.login-mode .app-main { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.login-mode .notice { width: min(490px,100%); }
.login-stage { width: min(470px,100%); margin-block: 20px; }
.login-dialog { overflow: hidden; color: #263548; border: 1px solid #ffffff36; border-radius: 16px; background: #fff; box-shadow: 0 28px 70px #00000078; }
.login-dialog > header { display: flex; align-items: center; gap: 14px; padding: 22px 24px; color: #fff; background: linear-gradient(115deg,#172333,#0d141d); }
.login-dialog > header .menu-icon { width: 31px; height: 31px; color: #f3ad36; }
.login-dialog h1 { margin: 0 0 4px; font-size: 1.3rem; }
.login-dialog header p { margin: 0; color: #b9c6d5; font-size: .76rem; }
.login-dialog__body { padding: 26px; }
.login-dialog form { display: grid; gap: 9px; }
.login-dialog label { margin: 8px 0 0; font-size: .82rem; }
.login-field { position: relative; }
.login-field > .menu-icon { position: absolute; top: 50%; left: 13px; width: 20px; height: 20px; color: #738196; transform: translateY(-50%); }
.login-field input { height: 50px; padding-inline: 44px; }
.password-toggle { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); padding: 9px; border: 0; color: #617185; background: transparent; cursor: pointer; font-size: 1rem; }
.password-toggle[aria-pressed=true] { color: #176ff2; }
.app-main form .login-submit { display: flex; width: 100%; margin-top: 15px; min-height: 49px; font-size: 1rem; }
.login-note { color: #617185; font-size: .77rem; line-height: 1.7; margin: 20px 0 0; }
.login-back { display: block; margin-top: 18px; color: #4f6075; font-size: .8rem; text-align: center; }
.login-back:hover { text-decoration: underline; }
.login-footer { margin: 17px 0 0; color: #c0ccda; font-size: .73rem; line-height: 1.8; text-align: center; }
@media (max-width: 1050px) {
    .access-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-user__details { display: none; }
    .access-card h2 { font-size: 1.25rem; }
}
@media (max-width: 700px) {
    body { background-attachment: scroll; }
    .app-header__inner, .app-main, .app-nav__inner, .home-meta { width: calc(100% - 32px); }
    .app-header__inner { flex-wrap: wrap; gap: 16px; }
    .app-brand { gap: 10px; }
    .app-brand img, .brand-emblem { width: 52px; height: 52px; }
    .brand-emblem .menu-icon { width: 30px; height: 30px; }
    .brand-text strong { font-size: 1rem; }
    .brand-text small { font-size: .69rem; }
    .brand-text small:first-child { font-size: .55rem; }
    .app-user { margin-left: auto; }
    .app-user .button { padding: 9px 13px; font-size: .8rem; }
    .app-main { padding-block: 24px 32px; }
    .portal-intro { margin: 18px auto 30px; }
    .hero__subtitle { font-size: .94rem; }
    .home-meta { flex-direction: column; gap: 18px; }
    .home-credit { text-align: center; }
    .live-clock { font-size: .69rem; gap: 8px; padding: 10px 12px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .panel { padding: 22px; }
    .login-dialog__body { padding: 22px; }
}
@media (max-width: 520px) {
    .access-grid { grid-template-columns: 1fr; gap: 18px; }
    .access-card { padding: 24px; }
    .access-card__description { min-height: 0; }
    .app-nav a { padding: 13px 12px; font-size: .8rem; }
    .live-clock { flex-wrap: wrap; justify-content: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Siglele late rămân lizibile; emblema implicită păstrează forma circulară. */
.app-brand img { width: 170px; height: 64px; border-radius: 10px; padding: 5px; }
@media (max-width: 700px) { .app-brand img { width: 105px; height: 48px; } }

/* Prezentare publică: informații în jurul cardului central de autentificare. */
.public-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 22px; }
.info-card h2 { margin-top: 14px; }
.info-card .access-card__description { margin-bottom: 6px; }
.auth-card { grid-area: 2 / 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; border: 1px solid #f3b64eaa; border-radius: 20px; color: #fff; background: linear-gradient(145deg, #143655f5, #09182df5); box-shadow: 0 22px 60px #00000060, 0 0 35px #eea52b13; }
.auth-card__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; color: #f3b64e; background: #f3b64e17; }
.auth-card__icon .menu-icon { width: 31px; height: 31px; }
.auth-card__eyebrow { margin: 19px 0 9px; color: #f3b64e; font-size: .68rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.auth-card h2 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 10px; }
.auth-card > p:not(.auth-card__eyebrow) { color: #cbd9e7; font-size: .87rem; line-height: 1.7; margin: 0 0 22px; }
.auth-card__button { display: flex; justify-content: space-between; gap: 30px; width: 100%; padding: 14px 18px; border-radius: 10px; background: linear-gradient(110deg, #f3b64e, #d7962b); color: #14253a; font-size: .95rem; font-weight: 800; }
.auth-card__button:hover { filter: brightness(1.08); }
.auth-card small { margin-top: 16px; color: #b8cadd; font-size: .7rem; line-height: 1.6; }
.dashboard-intro { margin-bottom: 30px; padding-bottom: 23px; border-bottom: 1px solid #ffffff29; }
.dashboard-intro h1 { margin: 9px 0 12px; font-size: 2.1rem; }
.dashboard-intro > p:last-child { color: #cbd9e7; line-height: 1.7; margin-bottom: 0; }
@media (max-width: 1000px) {
    .public-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-card { grid-area: 1 / 1 / auto / -1; }
    .auth-card__button { max-width: 340px; }
}
@media (max-width: 600px) { .public-grid { grid-template-columns: 1fr; } }

/* Categorii în modulul Formare, în aceeași temă cu panoul personal. */
.training-grid { gap: 22px; }
.training-intro h1 { max-width: 850px; }
.training-back { display: inline-block; color: #d9e5f2; margin-bottom: 20px; font-size: .84rem; }
.training-back:hover { color: #f3b64e; text-decoration: underline; text-underline-offset: 4px; }
.training-card { min-height: 260px; }
.training-card h2 { font-size: 1.22rem; }
.training-card__details { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--accent-dark); border-radius: 11px; color: var(--accent-dark); background: var(--soft); font-size: .8rem; font-weight: 650; }
.training-card__details:hover { text-decoration: underline; text-underline-offset: 4px; }
.training-section-details .access-card__icon { color: #0d5f9f; background: #e8f4fc; }

/* Selector de zonă, disponibil numai pentru opțiunile autorizate ale contului. */
.work-area-switch { display: grid; gap: 5px; }
.work-area-switch label { color: #b9c9dd; font-size: .68rem; }
.work-area-switch > div { display: flex; gap: 6px; align-items: center; }
.work-area-switch select { min-height: 36px; max-width: 180px; padding: 7px 28px 7px 10px; color: #172d46; background: #f4f7fc; border: 1px solid #c9d6e6; border-radius: 8px; font-size: .8rem; }
.work-area-switch select:focus-visible { outline: 3px solid #f3b64e; outline-offset: 3px; }
.work-area-switch .button { padding: 9px 10px; font-size: .72rem; }
.work-area-banner { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; padding: 14px 18px; color: #e5effa; border: 1px solid #79a6d05c; border-radius: 11px; background: #123654cc; font-size: .85rem; line-height: 1.6; }
.work-area-banner .menu-icon { color: #f3b64e; }
@media (max-width: 700px) { .work-area-switch { text-align: left; } }

/* Profil personal și registru Personal. */
.profile-shell { max-width: 980px; margin-inline: auto; }
.profile-panel { padding: 30px; margin-bottom: 24px; }
.profile-panel > h1 { margin: 0 0 24px; font-size: 1.8rem; }
.profile-section + .profile-section { border-top: 1px solid #dbe3ee; margin-top: 28px; padding-top: 28px; }
.profile-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.profile-heading__icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: #176ff2; }
.profile-heading__icon .menu-icon { width: 21px; height: 21px; }
.profile-heading h2 { margin: 0 0 5px; font-size: 1.4rem; }
.profile-heading p { margin: 0; color: #60738b; font-size: .9rem; line-height: 1.6; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.profile-panel .field-note { color: #526981; font-size: .78rem; line-height: 1.65; margin: 8px 0 0; }
.profile-panel input, .profile-panel select { min-height: 49px; }
.profile-panel textarea { min-height: 65px; }
.profile-panel .profile-check { display: flex; align-items: flex-start; gap: 12px; padding: 18px; margin: 0; border: 1px solid #b9d2f3; border-radius: 12px; background: #f2f7ff; cursor: pointer; }
.profile-check input[type=checkbox] { flex-shrink: 0; width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; accent-color: #176ff2; }
.profile-check span { display: grid; gap: 5px; }
.profile-check small { color: #57718d; line-height: 1.6; font-size: .77rem; font-weight: 500; }
.commute-details { border: 1px solid #dbe3ee; border-radius: 12px; padding: 18px; margin: 22px 0 0; }
.commute-details[hidden] { display: none; }
.commute-details legend { padding-inline: 8px; font-size: .9rem; font-weight: 700; color: #284967; }
.profile-privacy { padding: 15px 18px; border-radius: 10px; color: #315a80; background: #edf5ff; font-size: .8rem; line-height: 1.7; margin-top: 26px; }
.profile-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.profile-account { padding: 13px; border: 1px solid #dbe3ee; border-radius: 9px; background: #f2f5f9; font-size: .86rem; }
.month-picker { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 15px; }
.month-picker > div { flex: 1; max-width: 290px; }
.month-editor { max-width: 550px; border-top: 1px solid #dbe3ee; margin-top: 24px; padding-top: 14px; }
.month-editor button { margin-top: 18px; }
.profile-later { margin-top: 24px; font-size: .82rem; }
.personnel-search { display: flex; gap: 10px; width: min(500px,100%); }
.personnel-search input { min-width: 0; }
.personnel-structures { margin-top: 28px; max-width: 780px; }
.personnel-structures ul { padding-left: 20px; line-height: 1.9; }
.personnel-structures button { margin-top: 15px; }
.personnel-pagination { margin-top: 22px; }
.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; }
@media(max-width:650px) { .profile-grid { grid-template-columns: 1fr; gap: 0; } .profile-panel { padding: 22px 18px; } .profile-heading h2 { font-size: 1.2rem; } .month-picker > div { max-width: none; width: 100%; } .personnel-search { flex-wrap: wrap; } }
