/* Autentificare CREST: participant, teacher și admin. */
.auth-page {
  --ca-accent: #2563eb; --ca-accent-hover: #1d4ed8; --ca-accent-rgb: 37,99,235;
  --ca-soft: #eff6ff; --ca-tint: #bfdbfe; --ca-ink: #14223d; --ca-muted: #56647c;
  --ca-line: #e2e7f0; --ca-error: #b42336; --ca-success: #137858;
  --ca-radius: 28px; --ca-font: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  margin: 0; background: #f7f9fc; color: var(--ca-ink); font: 400 15px/1.5 var(--ca-font);
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100svh;
  position: relative; isolation: isolate;
}
.auth-page[data-portal="teacher"] { --ca-accent: #15803d; --ca-accent-hover: #166534; --ca-accent-rgb: 21,128,61; --ca-soft: #f0fdf4; --ca-tint: #bbf7d0; }
.auth-page[data-portal="admin"] { --ca-accent: #b45309; --ca-accent-hover: #92400e; --ca-accent-rgb: 180,83,9; --ca-soft: #fffbeb; --ca-tint: #fde68a; }
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page [hidden] { display: none !important; }
.auth-page :where(h1,h2,h3,p) { margin: 0; }
.auth-page :where(button,input,select) { font: inherit; }
.auth-page :where(button,a,input,select,summary) { -webkit-tap-highlight-color: transparent; }
.auth-page button { cursor: pointer; }
.auth-page :where(button,a) { touch-action: manipulation; }
.auth-page a { color: inherit; text-decoration: none; }
.auth-page button { color: inherit; }
.auth-page :focus-visible { outline: 3px solid var(--ca-accent); outline-offset: 4px; }
.auth-page :where(input,select):focus-visible { outline-offset: 2px; }
.auth-page .ca-icon { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.auth-page .ca-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.auth-page .ca-skip { position: absolute; top: 12px; left: 12px; padding: 12px 18px; background: white; color: var(--ca-accent); z-index: 50; transform: translateY(-170%); border-radius: 10px; }
.auth-page .ca-skip:focus { transform: translateY(0); }
.auth-page .ca-page-decoration { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 3% 8%,rgba(var(--ca-accent-rgb),.055),transparent 36%),radial-gradient(ellipse at 98% 80%,rgba(var(--ca-accent-rgb),.04),transparent 34%); }
.auth-page .ca-page-decoration::before { content: ''; position: absolute; width: 640px; height: 640px; right: -400px; bottom: 4%; border: 1px solid rgba(var(--ca-accent-rgb),.08); border-radius: 50%; box-shadow: 0 0 0 54px rgba(var(--ca-accent-rgb),.018),0 0 0 108px rgba(var(--ca-accent-rgb),.012); }
.auth-page .ca-layout { width: min(1240px,calc(100% - 96px)); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 20px; }
.auth-page .ca-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.auth-page .ca-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 750; letter-spacing: -.8px; min-height: 48px; }
.auth-page .ca-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ca-accent); color: #fff; border-radius: 13px; font-size: 27px; font-weight: 750; letter-spacing: -.5px; box-shadow: 0 6px 16px rgba(var(--ca-accent-rgb),.17),inset 0 1px 1px #ffffff66; }
.auth-page .ca-brand-dot { color: var(--ca-accent); }
.auth-page .ca-brand-description { font-size: 9px; font-weight: 650; letter-spacing: 1.5px; color: var(--ca-muted); border-left: 1px solid #dce2ed; padding: 6px 0 6px 22px; margin-left: 9px; }
.auth-page .ca-header-actions { display: flex; align-items: center; gap: 27px; color: var(--ca-muted); font-size: 13px; font-weight: 550; }
.auth-page .ca-header-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; }
.auth-page .ca-header-back .ca-icon { width: 17px; height: 17px; }
.auth-page .ca-header-back:hover { color: var(--ca-accent); }
.auth-page .ca-help-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid #dde4ef; border-radius: 10px; min-height: 42px; padding: 0 16px; font-size: 13px; transition: border-color .2s,box-shadow .2s; }
.auth-page .ca-help-button:hover { border-color: var(--ca-accent); box-shadow: 0 3px 12px #1c345909; }
.auth-page .ca-help-button .ca-icon { width: 17px; height: 17px; }
.auth-page .ca-shell { display: grid; grid-template-columns: 1.05fr 1fr; border: 1px solid #e0e7f2; border-radius: var(--ca-radius); background: #fff; box-shadow: 0 25px 80px -32px #253d6b36,0 4px 14px #253d6b05; }
.auth-page .ca-story { padding: 48px 46px 30px; position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg,#edf4ff 0%,#f1f6ff 36%,#e9f0ff 100%); background: linear-gradient(135deg,var(--ca-soft),#f4f7fd 52%,var(--ca-tint)); border-radius: calc(var(--ca-radius) - 1px) 0 0 calc(var(--ca-radius) - 1px); border-right: 1px solid #e2e9f5; display: flex; flex-direction: column; }
.auth-page .ca-story::before { content: ''; position: absolute; z-index: -1; top: -92px; right: -80px; width: 290px; height: 290px; border-radius: 50%; border: 1px solid rgba(var(--ca-accent-rgb),.07); box-shadow: 0 0 0 43px rgba(var(--ca-accent-rgb),.022),0 0 0 86px rgba(var(--ca-accent-rgb),.018); }
.auth-page .ca-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--ca-accent); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; }
.auth-page .ca-eyebrow-line { width: 19px; height: 2px; background: var(--ca-accent); }
.auth-page .ca-story h2 { margin-top: 20px; font-size: clamp(35px,3.05vw,46px); line-height: 1.12; letter-spacing: -1.7px; font-weight: 720; }
.auth-page .ca-story h2 span { color: var(--ca-accent); }
.auth-page .ca-story-description { margin-top: 18px; max-width: 400px; color: var(--ca-muted); font-size: 15px; line-height: 1.75; }
.auth-page .ca-showcase { margin-top: 14px; }
.auth-page .ca-scene { height: 237px; position: relative; margin: 0 -8px; isolation: isolate; }
.auth-page .ca-scene-grid { position: absolute; inset: 20% 0 0; background-image: linear-gradient(rgba(var(--ca-accent-rgb),.055) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--ca-accent-rgb),.055) 1px,transparent 1px); background-size: 35px 35px; mask-image: radial-gradient(ellipse,#000 14%,transparent 72%); }
.auth-page .ca-arch { position: absolute; border-radius: 110px 110px 14px 14px; }
.auth-page .ca-arch-back { width: 208px; height: 214px; left: calc(50% - 100px); top: 14px; background: linear-gradient(140deg,rgba(var(--ca-accent-rgb),.04),rgba(var(--ca-accent-rgb),.13)); transform: rotate(13deg); border: 1px solid rgba(255,255,255,.65); }
.auth-page .ca-arch-front { width: 168px; height: 182px; left: calc(50% - 80px); top: 36px; border: 1px solid rgba(255,255,255,.9); background: linear-gradient(145deg,#ffffffad,#ffffff26); }
.auth-page .ca-orbit { position: absolute; border: 1px solid rgba(var(--ca-accent-rgb),.13); border-radius: 50%; width: 328px; height: 90px; top: 125px; left: calc(50% - 164px); transform: rotate(-19deg); z-index: -1; }
.auth-page .ca-orbit-two { width: 370px; height: 126px; top: 93px; left: calc(50% - 185px); transform: rotate(-19deg); border-color: rgba(var(--ca-accent-rgb),.075); }
.auth-page .ca-spark { color: var(--ca-accent); position: absolute; }
.auth-page .ca-spark-one { top: 56px; right: 19%; transform: rotate(12deg); }
.auth-page .ca-spark-one .ca-icon { width: 18px; height: 18px; stroke-width: 1.4; }
.auth-page .ca-scene-dot { position: absolute; border-radius: 50%; background: rgba(var(--ca-accent-rgb),.35); width: 5px; height: 5px; }
.auth-page .ca-dot-one { left: 18%; top: 92px; }
.auth-page .ca-dot-two { right: 14%; top: 162px; width: 4px; height: 4px; }
.auth-page .ca-visual { width: 174px; height: 148px; position: absolute; left: calc(50% - 94px); top: 53px; transition: opacity .2s,transform .3s; }
.auth-page .ca-folder-back { position: absolute; width: 152px; height: 110px; left: 10px; top: 30px; background: color-mix(in srgb, var(--ca-accent) 65%, white); border: 1px solid var(--ca-tint); border-radius: 9px 13px 14px 14px; transform: rotate(-8deg); box-shadow: 0 12px 20px -9px rgba(var(--ca-accent-rgb),.27); }
.auth-page .ca-folder-back::before { content: ''; width: 62px; height: 22px; position: absolute; top: -14px; left: -1px; border-radius: 10px 10px 0 0; background: color-mix(in srgb, var(--ca-accent) 65%, white); border: 1px solid var(--ca-tint); border-bottom: 0; transform: skewX(19deg); }
.auth-page .ca-paper { position: absolute; width: 113px; height: 116px; background: #fff; border-radius: 7px; top: 0; left: 32px; border: 1px solid var(--ca-tint); box-shadow: 0 2px 6px #182c6320; }
.auth-page .ca-paper-back { transform: rotate(5deg); top: -1px; left: 40px; background: var(--ca-soft); }
.auth-page .ca-paper-front { transform: rotate(-5deg); padding: 13px; }
.auth-page .ca-paper-logo { width: 19px; height: 19px; display: grid; place-items: center; background: var(--ca-soft); color: var(--ca-accent); font-weight: 800; font-size: 11px; border-radius: 5px; }
.auth-page .ca-paper-line { display: block; margin-top: 9px; width: 70px; height: 3px; background: var(--ca-tint); border-radius: 3px; }
.auth-page .ca-paper-line-short { width: 50px; margin-top: 6px; }
.auth-page .ca-folder-front { position: absolute; width: 168px; height: 96px; left: 10px; top: 49px; border-radius: 9px 13px 15px 15px; transform: rotate(-5deg) skewX(-8deg); background: linear-gradient(120deg,color-mix(in srgb, var(--ca-accent) 70%, white),var(--ca-accent) 75%,var(--ca-accent-hover)); box-shadow: 0 15px 20px -12px #1c4bc89c,inset 0 1px 0 #bdd2ff,inset -2px 0 2px #1a48c82b; border: 1px solid var(--ca-accent); }
.auth-page .ca-folder-emblem { position: absolute; bottom: 20px; left: 20px; color: #fff; font-weight: 750; font-size: 26px; transform: skewX(8deg); line-height: 1; }
.auth-page .ca-folder-emblem span { font-size: 9px; letter-spacing: 2px; font-weight: 550; padding-left: 2px; }
.auth-page .ca-floating-check { position: absolute; width: 40px; height: 40px; left: calc(50% + 76px); top: 160px; border: 4px solid #fff; background: #1a9974; box-shadow: 0 7px 14px #12365b1a; border-radius: 50%; display: grid; place-items: center; }
.auth-page .ca-floating-check .ca-icon { color: #fff; width: 20px; height: 20px; stroke-width: 2.5; }
.auth-page .ca-mini-card { position: absolute; top: 174px; left: 3%; display: flex; align-items: center; gap: 10px; border: 1px solid #fff; background: #fff; border-radius: 13px; padding: 12px 13px; box-shadow: 0 10px 30px -8px #25478124,0 2px 3px #25478105; transform: rotate(-3deg); }
.auth-page .ca-mini-icon { display: grid; place-items: center; border-radius: 8px; width: 32px; height: 32px; background: #eef3ff; color: var(--ca-accent); }
.auth-page .ca-mini-icon .ca-icon { width: 17px; height: 17px; }
.auth-page .ca-mini-card b { font-size: 10px; font-weight: 700; display: block; }
.auth-page .ca-mini-card small { font-size: 9px; margin-top: 2px; color: var(--ca-muted); display: block; }
.auth-page .ca-mini-status { width: 20px; height: 3px; background: #c6d8ff; border-radius: 3px; margin-left: 10px; }
.auth-page .ca-visual-documents, .auth-page .ca-visual-notifications { opacity: 0; transform: translateY(6px) scale(.96); }
.auth-page [data-scene="documents"] .ca-visual-folder, .auth-page [data-scene="notifications"] .ca-visual-folder { opacity: 0; transform: translateY(6px) scale(.96); }
.auth-page [data-scene="documents"] .ca-visual-documents, .auth-page [data-scene="notifications"] .ca-visual-notifications { opacity: 1; transform: none; }
.auth-page .ca-large-document { position: absolute; width: 120px; height: 148px; left: 31px; top: -12px; border-radius: 10px; }
.auth-page .ca-document-back { background: #a7c0fc; transform: rotate(12deg) translateX(14px); border: 1px solid #c7d9ff; }
.auth-page .ca-document-front { background: #fff; border: 1px solid #d2dff8; box-shadow: 0 13px 24px -10px #2046a555; transform: rotate(-7deg); padding: 18px; }
.auth-page .ca-document-front .ca-icon { width: 29px; height: 29px; color: var(--ca-accent); margin-bottom: 12px; }
.auth-page .ca-document-front span { display: block; width: 100%; height: 4px; margin-top: 9px; background: #d3e1fb; border-radius: 3px; }
.auth-page .ca-document-front span:last-child { width: 65%; }
.auth-page .ca-bell-tile { position: absolute; width: 135px; height: 135px; top: 3px; left: 21px; display: grid; place-items: center; border-radius: 34px; background: linear-gradient(145deg,color-mix(in srgb, var(--ca-accent) 65%, white),#2563eb); color: #fff; transform: rotate(-9deg); border: 1px solid var(--ca-tint); box-shadow: 0 18px 30px -13px #214db973,inset 0 1px 2px #ffffff55; }
.auth-page .ca-bell-tile > .ca-icon { width: 65px; height: 65px; stroke-width: 1.3; }
.auth-page .ca-bell-tile i { width: 19px; height: 19px; background: #fff; border: 4px solid var(--ca-accent); border-radius: 50%; position: absolute; right: 32px; top: 28px; }
.auth-page .ca-feature-tabs { display: flex; padding: 5px; gap: 3px; border: 1px solid rgba(var(--ca-accent-rgb),.08); border-radius: 12px; background: #ffffff70; }
.auth-page .ca-feature-tabs button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 7px; padding: 10px 8px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ca-muted); font-size: 12px; font-weight: 650; white-space: nowrap; transition: .16s; }
.auth-page .ca-feature-tabs .ca-icon { width: 16px; height: 16px; }
.auth-page .ca-feature-tabs [aria-selected="true"] { background: #fff; color: var(--ca-accent); box-shadow: 0 2px 7px #152c5310; border-color: #e4eafa; }
.auth-page .ca-feature-tabs button:hover { color: var(--ca-accent); background: #ffffff9c; }
.auth-page .ca-feature-panels { min-height: 107px; padding-top: 19px; }
.auth-page .ca-feature-panel h3 { font-size: 16px; line-height: 1.4; letter-spacing: -.15px; font-weight: 700; }
.auth-page .ca-feature-panel p { margin-top: 7px; color: var(--ca-muted); font-size: 13px; line-height: 1.65; max-width: 440px; }
.auth-page .ca-story-footer { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; align-items: center; color: #56647c; font-size: 10px; }
.auth-page .ca-story-footer > span { width: 4px; height: 4px; border-radius: 50%; background: #829dcf; }
.auth-page .ca-form-panel { padding: 43px 56px 34px; display: flex; flex-direction: column; min-width: 0; }
.auth-page .ca-form-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-page .ca-portal-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--ca-accent); background: var(--ca-soft); border: 1px solid var(--ca-tint); border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 650; }
.auth-page .ca-portal-pill .ca-icon { width: 14px; height: 14px; stroke-width: 1.9; }
.auth-page .ca-change-portal { border: 0; padding: 10px 0 10px 10px; background: none; display: inline-flex; align-items: center; gap: 7px; color: var(--ca-muted); font-size: 11px; min-height: 42px; }
.auth-page .ca-change-portal:hover { color: var(--ca-accent); }
.auth-page .ca-change-portal .ca-icon { width: 13px; height: 13px; }
.auth-page .ca-form-heading { margin-top: 29px; }
.auth-page .ca-form-eyebrow { font-size: 9px; letter-spacing: 1.65px; color: var(--ca-muted); font-weight: 700; }
.auth-page .ca-form-heading h1 { font-size: 36px; line-height: 1.2; letter-spacing: -1.2px; margin-top: 8px; font-weight: 730; }
.auth-page .ca-form-heading h1 > span { color: var(--ca-accent); }
.auth-page .ca-form-heading > p:last-child { margin-top: 10px; font-size: 13px; line-height: 1.65; color: var(--ca-muted); }
.auth-page .ca-form { margin-top: 29px; }
.auth-page .ca-field + .ca-field { margin-top: 20px; }
.auth-page .ca-field label { display: inline-block; font-size: 12px; font-weight: 650; line-height: 1.5; margin-bottom: 8px; }
.auth-page .ca-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auth-page .ca-input-wrap { position: relative; }
.auth-page .ca-input-wrap > .ca-icon { position: absolute; top: 17px; left: 16px; width: 19px; height: 19px; color: #7a89a3; pointer-events: none; }
.auth-page .ca-input-wrap:focus-within > .ca-icon { color: var(--ca-accent); }
.auth-page .ca-input-wrap input { width: 100%; display: block; height: 54px; padding: 0 46px; background: #fff; border: 1px solid #8794a9; border-radius: 10px; color: var(--ca-ink); font-size: 16px; line-height: 1.4; transition: border-color .18s,box-shadow .18s; caret-color: var(--ca-accent); }
.auth-page .ca-input-wrap input::placeholder { color: #68768d; opacity: 1; font-size: 14px; }
.auth-page .ca-input-wrap input:hover { border-color: #7386a5; }
.auth-page .ca-input-wrap input:focus { border-color: var(--ca-accent); box-shadow: 0 0 0 3px rgba(var(--ca-accent-rgb),.12); outline: none; }
.auth-page .ca-input-wrap input[aria-invalid="true"] { border-color: var(--ca-error); }
.auth-page .ca-input-wrap input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #b4233617; }
.auth-page .ca-input-wrap input:-webkit-autofill { -webkit-text-fill-color: var(--ca-ink); box-shadow: 0 0 0 100px var(--ca-soft) inset; }
.auth-page .ca-field-hint { font-size: 11px; color: var(--ca-muted); margin-top: 7px; }
.auth-page .ca-field-error { display: flex; align-items: baseline; gap: 5px; color: var(--ca-error); font-size: 12px; line-height: 1.5; margin-top: 7px; }
.auth-page .ca-field-error::before { content: '!'; font-weight: 800; font-size: 11px; border: 1px solid currentColor; border-radius: 50%; min-width: 13px; height: 13px; line-height: 12px; text-align: center; }
.auth-page .ca-password-toggle { display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; color: #697a94; }
.auth-page .ca-password-toggle:hover { color: var(--ca-accent); background: var(--ca-soft); }
.auth-page .ca-password-toggle .ca-icon { width: 20px; height: 20px; }
.auth-page .ca-text-link,.auth-page .ca-inline-link { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; color: var(--ca-accent); font-weight: 600; }
.auth-page .ca-text-link:hover,.auth-page .ca-inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-page .ca-password-help { font-size: 10px; min-height: 28px; }
.auth-page .ca-caps-hint { display: flex; gap: 6px; align-items: center; color: #865416; font-size: 11px; margin-top: 8px; }
.auth-page .ca-caps-hint .ca-icon { width: 15px; height: 15px; }
.auth-page .ca-remember-wrap { margin-top: 10px; }
.auth-page .ca-checkbox { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; min-height: 43px; font-size: 12px; color: #4d5b74; }
.auth-page .ca-checkbox input { accent-color: var(--ca-accent); width: 16px; height: 16px; margin: 0; cursor: pointer; flex: 0 0 auto; }
.auth-page .ca-remember-hint { padding-left: 25px; margin-bottom: 7px; color: var(--ca-muted); font-size: 11px; }
.auth-page .ca-submit { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 1px solid var(--ca-accent); border-radius: 10px; padding: 13px 17px; color: #fff; background: var(--ca-accent); font-size: 13px; font-weight: 650; box-shadow: 0 7px 17px rgba(var(--ca-accent-rgb),.18),inset 0 1px 0 #ffffff1f; margin-top: 9px; transition: background .18s,box-shadow .18s,transform .18s; }
.auth-page .ca-submit > .ca-icon { width: 18px; height: 18px; transition: transform .18s; }
.auth-page .ca-submit:hover:not(:disabled) { background: var(--ca-accent-hover); box-shadow: 0 9px 20px rgba(var(--ca-accent-rgb),.24); transform: translateY(-1px); }
.auth-page .ca-submit:hover:not(:disabled) > .ca-icon { transform: translateX(3px); }
.auth-page .ca-submit:active:not(:disabled) { transform: translateY(0); }
.auth-page .ca-submit:disabled { cursor: wait; opacity: .76; }
.auth-page .ca-form[data-locked="true"] .ca-submit { cursor: not-allowed; }
.auth-page .ca-spinner { width: 17px; height: 17px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: ca-spin .65s linear infinite; }
.auth-page .ca-form[aria-busy="true"] .ca-submit > .ca-icon { display: none; }
.auth-page .ca-first-visit { border-top: 1px solid var(--ca-line); margin-top: 22px; padding-top: 20px; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 7px; color: var(--ca-muted); }
.auth-page .ca-first-visit a { display: inline-flex; align-items: center; gap: 5px; color: var(--ca-accent); font-weight: 650; min-height: 30px; }
.auth-page .ca-first-visit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-page .ca-first-visit .ca-icon { width: 14px; height: 14px; }
.auth-page .ca-access-note { margin-top: 24px; display: flex; gap: 11px; align-items: center; padding: 13px 14px; background: #f8fafc; border: 1px solid #edf0f5; border-radius: 10px; }
.auth-page .ca-access-icon { color: #8594ad; display: flex; }
.auth-page .ca-access-icon .ca-icon { width: 19px; height: 19px; }
.auth-page .ca-access-note p { font-size: 10px; color: var(--ca-muted); line-height: 1.7; }
.auth-page .ca-access-note strong { color: #445574; font-weight: 600; }
.auth-page .ca-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; color: #64728a; font-size: 10px; }
.auth-page .ca-footer-separator { margin: 0 12px; opacity: .5; }
.auth-page .ca-footer nav { display: flex; gap: 22px; }
.auth-page .ca-footer a { display: inline-flex; align-items: center; min-height: 36px; }
.auth-page .ca-footer a:hover { color: var(--ca-accent); text-decoration: underline; text-underline-offset: 3px; }
.auth-page .ca-alert { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #f0b5bf; background: #fff5f6; color: #9e2538; padding: 14px; border-radius: 10px; margin-bottom: 20px; }
.auth-page .ca-alert[data-kind="preview"] { border-color: #a7d9c9; background: #f2faf7; color: #165d49; }
.auth-page .ca-alert[data-kind="info"] { background: #f3f7ff; border-color: #b1c9fa; color: #284b90; }
.auth-page .ca-alert-icon { display: flex; margin-top: 1px; }
.auth-page .ca-alert-icon .ca-icon { width: 17px; height: 17px; }
.auth-page .ca-alert strong { display: block; font-size: 12px; font-weight: 700; }
.auth-page .ca-alert p { font-size: 11px; line-height: 1.6; margin-top: 4px; }
.auth-page .ca-countdown { font-variant-numeric: tabular-nums; }
.auth-page .ca-alert .ca-inline-link { font-size: 11px; min-height: 32px; color: inherit; text-decoration: underline; }
.auth-page .ca-alert .ca-inline-link .ca-icon { width: 13px; height: 13px; }
.auth-page .ca-dialog { color: var(--ca-ink); background: white; width: min(490px,calc(100% - 32px)); max-height: calc(100svh - 48px); overflow-y: auto; border: 1px solid #dce5f4; border-radius: 23px; padding: 28px; box-shadow: 0 28px 100px #0f245833; margin: auto; font: inherit; }
.auth-page .ca-dialog::backdrop { background: rgba(18,34,61,.38); }
.auth-page .ca-dialog[open] { animation: ca-appear .18s ease-out; }
.auth-page .ca-dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; }
.auth-page .ca-dialog-icon { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid var(--ca-tint); background: var(--ca-soft); color: var(--ca-accent); border-radius: 14px; }
.auth-page .ca-dialog-icon .ca-icon { width: 22px; height: 22px; }
.auth-page .ca-icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #e4e9f2; border-radius: 10px; background: #fff; color: var(--ca-muted); }
.auth-page .ca-icon-button:hover { background: #f3f6fb; }
.auth-page .ca-dialog h2 { font-size: 26px; letter-spacing: -.8px; line-height: 1.2; margin-top: 9px; font-weight: 730; }
.auth-page .ca-dialog-description { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--ca-muted); }
.auth-page .ca-portal-list { display: grid; gap: 10px; margin-top: 24px; }
.auth-page .ca-portal-choice { display: flex; align-items: center; gap: 12px; padding: 15px 12px; border: 1px solid #e0e6ef; border-radius: 12px; transition: border-color .18s,background .18s; }
.auth-page .ca-portal-choice:hover { border-color: var(--ca-accent); background: #f8faff; }
.auth-page .ca-portal-choice.is-current { border-color: #adc6ff; background: #f3f7ff; }
.auth-page .ca-portal-choice-icon { color: #2563eb; background: #e9f0ff; border-radius: 10px; width: 39px; height: 39px; display: grid; place-items: center; flex-shrink: 0; }
.auth-page .ca-portal-choice-teacher .ca-portal-choice-icon { background: #eaf8ef; color: #148044; }
.auth-page .ca-portal-choice-admin .ca-portal-choice-icon { background: #fff2e6; color: #b45309; }
.auth-page .ca-portal-choice strong { display: block; font-size: 13px; font-weight: 650; }
.auth-page .ca-portal-choice small { display: block; font-size: 10px; line-height: 1.5; color: var(--ca-muted); margin-top: 3px; }
.auth-page .ca-portal-choice > .ca-icon { margin-left: auto; width: 16px; height: 16px; color: #8795ad; }
.auth-page .ca-current-tag { margin-left: auto; white-space: nowrap; font-size: 9px; font-weight: 650; color: var(--ca-accent); }
.auth-page .ca-dialog-note { margin-top: 20px; display: flex; align-items: flex-start; gap: 7px; color: var(--ca-muted); font-size: 10px; line-height: 1.6; }
.auth-page .ca-dialog-note .ca-icon { width: 14px; height: 14px; margin-top: 1px; }
.auth-page .ca-help-topics { margin-top: 20px; }
.auth-page .ca-help-topics details { border-bottom: 1px solid var(--ca-line); }
.auth-page .ca-help-topics summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 0; font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; }
.auth-page .ca-help-topics summary::-webkit-details-marker { display: none; }
.auth-page .ca-help-topics summary > span { flex-shrink: 0; color: var(--ca-accent); border-radius: 50%; background: var(--ca-soft); width: 23px; height: 23px; display: grid; place-items: center; font-size: 17px; font-weight: 400; }
.auth-page .ca-help-topics details[open] summary > span { transform: rotate(45deg); }
.auth-page .ca-help-topics details > div { padding: 0 25px 18px 0; color: var(--ca-muted); font-size: 12px; line-height: 1.75; }
.auth-page .ca-secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; background: #fff; border: 1px solid #aebbd0; border-radius: 9px; padding: 10px 14px; font-size: 12px; font-weight: 600; }
.auth-page .ca-secondary-button:hover { background: #f5f8fd; border-color: var(--ca-accent); }
.auth-page .ca-secondary-button .ca-icon { width: 16px; height: 16px; }
.auth-page .ca-dialog-done { width: 100%; margin-top: 25px; }
.auth-page .ca-noscript { font-size: 12px; color: #825916; margin-top: 15px; }
@keyframes ca-spin { to { transform: rotate(360deg); } }
@keyframes ca-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Layout mobil de bază; ecranele largi extind aceeași compoziție. */
.auth-page { --ca-radius: 20px; --ca-font: var(--crest-font-family, Inter, ui-sans-serif, system-ui, sans-serif); --ca-ink: #111827; --ca-muted: #4b5563; }
.auth-page .ca-layout { width: calc(100% - 28px); padding: 16px 0 22px; justify-content: flex-start; }
.auth-page .ca-header { gap: 12px; margin-bottom: 18px; }
.auth-page .ca-brand-group { display: flex; align-items: center; min-width: 0; }
.auth-page .auth-brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: 24px; font-weight: 750; letter-spacing: -.8px; }
.auth-page .auth-brand__mark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; background: var(--ca-accent); color: white; border-radius: 12px; box-shadow: 0 6px 16px rgba(var(--ca-accent-rgb), .17); }
.auth-page .auth-brand__logo { max-width: 120px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.auth-page .auth-brand > span:last-child { overflow-wrap: anywhere; }
.auth-page .ca-brand-description { display: none; }
.auth-page .ca-header-actions { flex-shrink: 0; gap: 8px; }
.auth-page .ca-header-back { width: 36px; justify-content: center; }
.auth-page .ca-header-back > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.auth-page .ca-help-button { padding: 0 11px; min-height: 44px; font-size: 12px; }
.auth-page .ca-shell { display: flex; flex-direction: column; }
.auth-page .ca-form-panel { padding: 24px 18px 25px; }
.auth-page .ca-form-topline { gap: 8px; }
.auth-page .ca-portal-pill { font-size: 11px; min-width: 0; }
.auth-page .ca-change-portal { font-size: 11px; white-space: nowrap; }
.auth-page .ca-form-heading { margin-top: 24px; }
.auth-page .ca-form-heading h1 { font-size: 28px; letter-spacing: -1px; }
.auth-page .ca-form-eyebrow { font-size: 10px; text-transform: uppercase; }
.auth-page .ca-form { margin-top: 23px; }
.auth-page .ca-field label { font-size: 13px; }
.auth-page .ca-label-row { gap: 4px; flex-wrap: wrap; }
.auth-page .ca-password-help { min-height: 30px; font-size: 11px; }
.auth-page .ca-field + .ca-field { margin-top: 18px; }
.auth-page .ca-checkbox { min-height: 44px; font-size: 13px; }
.auth-page .ca-submit { font-size: 14px; }
.auth-page .ca-first-visit { margin-top: 19px; padding-top: 16px; font-size: 11px; text-align: center; }
.auth-page .ca-access-note { margin-top: 18px; padding: 12px; }
.auth-page .ca-access-note p { font-size: 11px; }
.auth-page .ca-story { order: 2; border-right: 0; border-top: 1px solid var(--ca-tint); border-radius: 0 0 calc(var(--ca-radius) - 1px) calc(var(--ca-radius) - 1px); padding: 19px 18px; }
.auth-page .ca-story-body { display: flex; flex-direction: column; height: 100%; }
.auth-page[data-enhanced="true"] .ca-story-body { padding-top: 24px; }
.auth-page .ca-story h2 { font-size: 29px; margin-top: 13px; letter-spacing: -1.1px; }
.auth-page .ca-eyebrow { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.auth-page .ca-story-description { font-size: 13px; max-width: 470px; margin-top: 12px; }
.auth-page .ca-showcase { margin-top: 6px; }
.auth-page .ca-scene { height: 222px; max-width: 470px; width: 100%; margin: 0 auto; }
.auth-page .ca-mini-card { left: -3px; }
.auth-page .ca-feature-tabs { margin: 8px -5px 0; padding: 4px; gap: 1px; }
.auth-page .ca-feature-tabs button { min-width: 0; font-size: 10px; padding: 8px 3px; gap: 3px; white-space: normal; overflow-wrap: anywhere; }
.auth-page .ca-feature-tabs .ca-icon { width: 14px; height: 14px; }
.auth-page .ca-feature-panels { min-height: 112px; }
.auth-page .ca-feature-panel h3 { font-size: 15px; }
.auth-page .ca-feature-panel p { font-size: 12px; }
.auth-page:not([data-enhanced]) .ca-feature-panel + .ca-feature-panel { margin-top: 20px; }
.auth-page .ca-story-footer { margin-top: auto; font-size: 10px; padding-top: 24px; }
.auth-page .ca-footer { flex-direction: column; text-align: center; gap: 2px; margin-top: 20px; }
.auth-page .ca-dialog { padding: 24px 20px; border-radius: 19px; }
.auth-page .ca-dialog h2 { font-size: 23px; }
.auth-page .ca-portal-choice { padding: 12px 9px; gap: 9px; }
.auth-page .ca-portal-choice strong { font-size: 12px; }
.auth-page .ca-portal-choice small { font-size: 10px; }
.auth-page .ca-current-tag { display: none; }
.auth-page .ca-portal-choice-icon { width: 33px; height: 33px; }
.auth-page .ca-portal-choice-participant .ca-portal-choice-icon { color: #2563eb; background: #eff6ff; }
.auth-page .ca-portal-choice-teacher .ca-portal-choice-icon { color: #15803d; background: #f0fdf4; }
.auth-page .ca-portal-choice-admin .ca-portal-choice-icon { color: #b45309; background: #fffbeb; }
.auth-page .ca-alert ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; }
.auth-page .ca-password-toggle[aria-pressed="true"] { color: var(--ca-accent); background: var(--ca-soft); }
.auth-page .ca-mobile-story-toggle { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 0; text-align: left; border: 0; background: none; }
.auth-page .ca-mobile-story-toggle strong { display: block; font-size: 13px; font-weight: 650; }
.auth-page .ca-mobile-story-toggle small { display: block; font-size: 10px; color: var(--ca-muted); margin-top: 3px; }
.auth-page .ca-mobile-story-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: white; color: var(--ca-accent); flex: 0 0 auto; }
.auth-page .ca-mobile-story-plus { margin-left: auto; font-size: 23px; line-height: 1; color: var(--ca-accent); }
.auth-page .ca-mobile-story-toggle[aria-expanded="true"] .ca-mobile-story-plus { transform: rotate(45deg); }

@media (min-width: 361px) {
    .auth-page .ca-form-panel { padding-left: 23px; padding-right: 23px; }
    .auth-page .ca-form-heading h1 { font-size: 31px; }
    .auth-page .ca-story { padding-left: 23px; padding-right: 23px; }
    .auth-page .ca-current-tag { display: inline; font-size: 9px; }
}
@media (min-width: 521px) {
    .auth-page { --ca-radius: 28px; }
    .auth-page .ca-layout { width: min(640px, calc(100% - 48px)); padding: 22px 0; }
    .auth-page .ca-header { margin-bottom: 24px; }
    .auth-page .ca-header-actions { gap: 24px; }
    .auth-page .ca-header-back { width: auto; }
    .auth-page .ca-header-back > span { position: static; width: auto; height: auto; clip-path: none; }
    .auth-page .ca-form-panel { padding: 34px 42px; }
    .auth-page .ca-form-heading h1 { font-size: 34px; }
    .auth-page .ca-story { padding-left: 32px; padding-right: 32px; }
    .auth-page .ca-story h2 { font-size: 33px; }
    .auth-page .ca-feature-tabs button { font-size: 12px; padding: 10px 5px; gap: 5px; }
    .auth-page .ca-feature-panel p { font-size: 13px; }
    .auth-page .ca-dialog { padding: 32px; border-radius: 24px; }
}
@media (min-width: 901px) {
    .auth-page .ca-layout { width: calc(100% - 56px); max-width: 1240px; justify-content: center; padding: 24px 0 20px; }
    .auth-page .ca-header { margin-bottom: 30px; }
    .auth-page .ca-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
    .auth-page .ca-story { order: 0; padding: 38px 32px 28px; border-top: 0; border-right: 1px solid var(--ca-tint); border-radius: calc(var(--ca-radius) - 1px) 0 0 calc(var(--ca-radius) - 1px); }
    .auth-page .ca-story h2 { font-size: 39px; margin-top: 20px; letter-spacing: -1.7px; }
    .auth-page .ca-story-description { margin-top: 18px; font-size: 14px; }
    .auth-page .ca-form-panel { padding: 34px 35px 29px; }
    .auth-page .ca-form-heading h1 { font-size: 32px; }
    .auth-page .ca-form-heading { margin-top: 29px; }
    .auth-page .ca-form { margin-top: 29px; }
    .auth-page .ca-scene { height: 237px; }
    .auth-page .ca-mobile-story-toggle { display: none; }
    .auth-page[data-enhanced="true"] .ca-story-body { padding-top: 0; }
    .auth-page .ca-feature-panels { min-height: 116px; }
    .auth-page .ca-footer { flex-direction: row; text-align: left; margin-top: 24px; }
    .auth-page .ca-brand-description { display: block; }
}
@media (min-width: 1151px) {
    .auth-page .ca-layout { width: min(1240px, calc(100% - 96px)); }
    .auth-page .ca-story { padding: 48px 46px 30px; }
    .auth-page .ca-story h2 { font-size: clamp(39px, 3.05vw, 46px); }
    .auth-page .ca-story-description { font-size: 15px; }
    .auth-page .ca-form-panel { padding: 43px 56px 34px; }
    .auth-page .ca-form-heading h1 { font-size: 36px; }
}
@media (min-width: 1500px) {
    .auth-page .ca-layout { padding-top: 38px; padding-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .auth-page .ca-submit, .auth-page .auth-brand__mark { border: 2px solid ButtonText; }
    .auth-page .ca-feature-tabs [aria-selected="true"] { border: 2px solid Highlight; }
    .auth-page .ca-input-wrap input:focus { outline: 2px solid Highlight; }
}
