/* Вход: дерево-барельеф, общий материал и штатная тема кабинета. */
.entry-page {
  --entry-bg:light-dark(#eee8db,#23382c); --entry-surface:light-dark(#f3ede1,#293f31);
  --entry-ink:light-dark(#293d2e,#eee8d7); --entry-muted:light-dark(#606b59,#b5c1ac);
  --entry-gold:light-dark(#79643f,#c7b68d); --entry-line:light-dark(#99886955,#a3aa8340);
  --entry-field:light-dark(#e9e3d5,#1f3227); --entry-action:light-dark(#35513b,#d4c5a5);
  --entry-action-ink:light-dark(#fff9e9,#26382a); --entry-highlight:light-dark(#fffdf5bb,#d0dbc72c);
  --entry-shadow:light-dark(#64533924,#071a0bb0); --entry-error:light-dark(#9b4035,#f0b2a0);
  position:relative; isolation:isolate; display:flex; flex-direction:column; overflow:clip;
  min-height:100vh; min-height:100svh; padding:30px clamp(24px,4vw,64px) 24px;
  padding-top:max(30px,env(safe-area-inset-top)); padding-bottom:max(24px,env(safe-area-inset-bottom));
  background:radial-gradient(ellipse at 25% 20%,light-dark(#fffcf333,#90a6750c),transparent 65%),var(--entry-bg);
  color:var(--entry-ink); font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.entry-page::before { content:""; position:absolute; inset:0; pointer-events:none; background:url('/static/cabinet-grain.webp') repeat; background-size:116px; opacity:.42; z-index:-1; }
.entry-page :is(button,input) { font-family:inherit; }
.entry-page button { cursor:pointer; }
.entry-page button:disabled { opacity:.55; cursor:wait; transform:none!important; }
.entry-page :is(button,a,summary):focus-visible { outline:2px solid var(--entry-gold); outline-offset:5px; }
.entry-page svg { fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; width:18px; height:18px; flex-shrink:0; }
.entry-header,.entry-footer { position:relative; z-index:3; width:100%; max-width:1220px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.entry-brand { display:inline-flex; align-items:center; gap:12px; color:var(--entry-gold); text-decoration:none; font:400 27px/1 Georgia,"Times New Roman",serif; letter-spacing:.01em; text-shadow:0 1px 0 var(--entry-highlight),0 -1px 0 var(--entry-shadow); }
.entry-logo { width:34px; height:37px; background:linear-gradient(145deg,light-dark(#b8a482,#e8d9af),var(--entry-gold) 50%,light-dark(#7a6849,#8d9475)); mask:url('/static/tree.png') center/contain no-repeat; -webkit-mask:url('/static/tree.png') center/contain no-repeat; filter:drop-shadow(0 1px .5px var(--entry-shadow)); }
.entry-theme { display:flex; align-items:center; justify-content:center; gap:8px; min-width:44px; min-height:44px; padding:10px 13px; color:var(--entry-muted); border:1px solid var(--entry-line); border-radius:24px; background:color-mix(in srgb,var(--entry-surface) 52%,transparent); box-shadow:inset 0 1px var(--entry-highlight),0 2px 4px var(--entry-shadow); font-size:12px; }
.entry-theme:hover { background:var(--entry-surface); }
.entry-theme svg { width:16px; height:16px; }
.entry-theme[data-dark=true] .entry-moon,.entry-theme[data-dark=false] .entry-sun { display:none; }
.entry-main { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; width:100%; max-width:1120px; margin:auto; min-height:650px; gap:50px; flex:1; }
.entry-main::after { content:""; position:absolute; top:58px; bottom:70px; left:50%; width:1px; background:linear-gradient(transparent,var(--entry-line) 25%,var(--entry-line) 75%,transparent); }
.entry-story { position:relative; height:590px; display:flex; align-items:flex-end; justify-content:center; padding-bottom:35px; }
.entry-art { position:absolute; width:104%; max-width:490px; aspect-ratio:1; left:50%; translate:-50% 0; top:-8px; overflow:hidden; mask-image:radial-gradient(ellipse at 50% 48%,#000 47%,transparent 72%); -webkit-mask-image:radial-gradient(ellipse at 50% 48%,#000 47%,transparent 72%); opacity:.93; transform-origin:50% 75%; }
.entry-art img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; transition:opacity .5s; }
.entry-art-light { opacity:0; }
:root[data-theme=light] .entry-art-dark { opacity:0; }
:root[data-theme=light] .entry-art-light { opacity:1; }
@media(prefers-color-scheme:light) {
  :root:not([data-theme=dark]) .entry-art-dark { opacity:0; }
  :root:not([data-theme=dark]) .entry-art-light { opacity:1; }
}
.entry-art-shine { position:absolute; inset:-30%; background:linear-gradient(110deg,transparent 34%,#fff6cb18 48%,transparent 59%); mix-blend-mode:soft-light; opacity:0; pointer-events:none; }
.entry-story-copy { position:relative; text-align:center; z-index:1; }
.entry-story-copy h2 { font:400 31px/1.28 Georgia,"Times New Roman",serif; letter-spacing:-.018em; color:var(--entry-gold); text-shadow:0 1px var(--entry-highlight),0 -1px var(--entry-shadow); }
.entry-story-copy p { margin:15px 0 0; font-size:12px; color:var(--entry-muted); letter-spacing:.02em; }
.entry-forms { container-type:inline-size; position:relative; width:100%; max-width:350px; margin:0 auto; z-index:2; padding:25px 0 20px; }
.entry-page .screen { display:block; min-height:0; padding:0; background:none; }
.entry-page .screen .login-card { display:block; padding:0; border:0; border-radius:0; background:none; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.entry-page .login-card > .logo-link,.entry-page .login-card > .brand { display:none; }
.entry-eyebrow { color:var(--entry-gold); font-size:11px; letter-spacing:.19em; font-weight:500; text-transform:uppercase; margin:0 0 18px; }
.entry-page .screen .login-card h1 { font:400 clamp(31px,12.7cqw,44px)/1.1 Georgia,"Times New Roman",serif; letter-spacing:-.04em; text-wrap:initial; }
.entry-page .login-card > .muted { font-size:14px; line-height:1.65; color:var(--entry-muted); margin:17px 0 29px; max-width:330px; }
.entry-page .stack { gap:0; }
.entry-page label { margin:16px 0 10px; color:var(--entry-ink); font-size:12px; font-weight:400; }
.entry-page .stack > label:first-child { margin-top:0; }
.entry-page input:not([type=checkbox]):not([type=radio]) { min-height:54px; padding:13px 16px; border:1px solid var(--entry-line); border-radius:11px; background:var(--entry-field); color:var(--entry-ink); box-shadow:inset 0 2px 4px var(--entry-shadow),0 1px var(--entry-highlight); font-size:17px; line-height:1.5; letter-spacing:.02em; }
.entry-page input::placeholder { color:var(--entry-muted); opacity:.66; }
.entry-page input:focus { border-color:var(--entry-gold); box-shadow:inset 0 2px 4px var(--entry-shadow),0 0 0 3px color-mix(in srgb,var(--entry-gold) 13%,transparent); }
.entry-page :is(#callCode,#code) { letter-spacing:.25em; font-variant-numeric:tabular-nums; }
.entry-page .err { font-size:12px; color:var(--entry-error); margin:8px 0 0; min-height:0; }
.entry-page .err:empty { display:none; }
.entry-page .btn { white-space:normal; line-height:1.45; border-radius:11px; padding:13px 18px; transition:transform .16s,filter .16s,box-shadow .16s; }
.entry-page .btn.primary { width:100%; min-height:52px; margin-top:17px; border:1px solid color-mix(in srgb,var(--entry-action) 75%,var(--entry-gold)); background:linear-gradient(180deg,color-mix(in srgb,var(--entry-action) 96%,#fff),var(--entry-action)); color:var(--entry-action-ink); box-shadow:inset 0 1px 0 #fff3,0 3px 6px var(--entry-shadow); font-size:14px; font-weight:600; }
.entry-page .btn.primary:hover { filter:brightness(1.05); transform:translateY(-1px); box-shadow:inset 0 1px 0 #fff3,0 5px 10px var(--entry-shadow); }
.entry-page .btn.primary:active { transform:translateY(1px); }
.entry-small-note,.entry-page .note,.entry-page .hint { color:var(--entry-muted); font-size:12px; line-height:1.65; background:none; border:0; padding:0; }
.entry-small-note { margin:12px 0 0; }
.entry-divider { display:flex; align-items:center; gap:13px; margin:23px 0 16px; color:var(--entry-muted); opacity:.7; font-size:11px; }
.entry-divider::before,.entry-divider::after { content:""; height:1px; background:var(--entry-line); flex:1; }
.entry-page .btn.ghost { min-height:47px; padding:11px; border:1px solid var(--entry-line); color:var(--entry-ink); background:color-mix(in srgb,var(--entry-surface) 35%,transparent); box-shadow:inset 0 1px var(--entry-highlight); font-size:13px; }
.entry-page .btn.ghost:hover { background:var(--entry-surface); }
.entry-page .btn.ghost svg { color:var(--entry-gold); }
.entry-first { margin-top:23px; text-align:center; font-size:12px; color:var(--entry-muted); }
.entry-first summary { display:inline-block; list-style:none; cursor:pointer; padding:12px 0; min-height:44px; text-decoration:underline; text-decoration-color:var(--entry-line); text-underline-offset:5px; }
.entry-first summary::-webkit-details-marker { display:none; }
.entry-first summary::after { content:" +"; }
.entry-first[open] summary::after { content:" −"; }
.entry-first p { text-align:left; padding-top:3px; }
.entry-text-button,.entry-back { border:0; background:none; padding:10px 0; min-height:44px; color:var(--entry-muted); font-size:12px; }
.entry-text-button { text-decoration:underline; text-decoration-color:var(--entry-line); text-underline-offset:5px; }
.entry-text-button:hover,.entry-back:hover { color:var(--entry-ink); }
.entry-back { text-align:left; margin:0 0 10px; }
.entry-footer { border-top:1px solid var(--entry-line); padding-top:12px; color:var(--entry-muted); font-size:11px; }
.entry-footer .entry-text-button { font-size:11px; }
.entry-help { margin:auto; max-width:410px; width:calc(100% - 32px); max-height:calc(100% - 40px); padding:26px; border:1px solid var(--entry-line); border-radius:18px; background:var(--entry-surface); color:var(--entry-ink); box-shadow:0 20px 80px #0005,inset 0 1px var(--entry-highlight); font-family:inherit; }
.entry-help::backdrop { background:#0c1d16b0; backdrop-filter:blur(5px); }
.entry-help-head { display:flex; align-items:center; gap:10px; justify-content:space-between; }
.entry-help h2 { font:400 26px/1.2 Georgia,serif; }
.entry-close { display:grid; place-items:center; width:44px; height:44px; padding:0; flex-shrink:0; border:0; background:transparent; color:var(--entry-muted); border-radius:50%; font-size:28px; }
.entry-close:hover { background:var(--entry-field); }
.entry-help details { border-top:1px solid var(--entry-line); padding:16px 0; font-size:13px; }
.entry-help details:first-of-type { margin-top:16px; }
.entry-help summary { cursor:pointer; font-weight:500; }
.entry-help p { color:var(--entry-muted); margin:10px 0 0; line-height:1.7; }
.entry-page :is(.consent-list,.chk,.intent,.row) { margin:16px 0; }
.entry-page .linkbtn { color:var(--entry-gold); min-height:44px; }
.entry-page :is(#mfaLogout,#consentLogout,#handoffHome) { margin-top:16px; }
.entry-page:not([hidden]) .entry-art { animation:entry-relief-arrive 1.8s cubic-bezier(.2,.7,.2,1) both; }
.entry-page:not([hidden]) .entry-art-shine { animation:entry-light-pass 3.3s .25s ease-out both; }
.entry-page .screen:not([hidden]) { animation:entry-form-arrive .5s ease-out both; }
@keyframes entry-relief-arrive { from { opacity:0; transform:scale(1.025); } to { opacity:.93; transform:scale(1); } }
@keyframes entry-form-arrive { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:translateY(0); } }
@keyframes entry-light-pass { 0% { opacity:0; transform:translateX(-50%); } 20% { opacity:1; } 100% { opacity:0; transform:translateX(50%); } }
@media(max-width:779px) {
  .entry-page { padding:23px 24px 20px; padding-top:max(23px,env(safe-area-inset-top)); padding-bottom:max(20px,env(safe-area-inset-bottom)); }
  .entry-brand { font-size:25px; gap:9px; }
  .entry-logo { width:29px; height:33px; }
  .entry-theme { width:44px; height:44px; padding:8px; }
  #entryThemeLabel { display:none; }
  .entry-main { display:block; min-height:0; padding:49px 0 32px; }
  .entry-main::after { display:none; }
  .entry-story { position:absolute; inset:-48px -24px auto auto; width:270px; height:290px; opacity:.25; pointer-events:none; padding:0; }
  .entry-art { width:330px; top:-58px; left:6px; translate:none; mask-image:linear-gradient(#0008,transparent 92%); -webkit-mask-image:linear-gradient(#0008,transparent 92%); }
  .entry-story-copy { display:none; }
  .entry-forms { padding:0; }
  .entry-eyebrow { margin-bottom:15px; }
  .entry-footer { gap:10px; padding-top:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .entry-page *,.entry-page *::before,.entry-page *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
