/* Ecranele de intrare (login, configurare, carantină): culori calde, aură animată, emblemă cu orbite */
body.auth { overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, #2E1E27 0%, #150F12 45%, #090708 100%); min-height: 100vh; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.aurora { position: fixed; inset: -20%; z-index: 0; filter: blur(70px); opacity: .75; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 55vw; height: 55vw; left: 5%; top: 0; background: radial-gradient(circle, rgba(177, 129, 115, .55), transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 45vw; height: 45vw; right: 0; top: 25%; background: radial-gradient(circle, rgba(152, 111, 98, .45), transparent 65%); animation: drift2 28s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 50vw; height: 40vw; left: 30%; bottom: -10%; background: radial-gradient(circle, rgba(222, 196, 182, .35), transparent 65%); animation: drift3 25s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, -6vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-8vw, -10vh) scale(1.2); } }
.grid-floor { position: fixed; left: -50%; right: -50%; bottom: -10vh; height: 55vh; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(199, 162, 150, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(199, 162, 150, .13) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: top;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent); animation: floor 6s linear infinite; }
@keyframes floor { to { background-position: 0 60px, 0 0; } }

.auth-wrap { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  max-width: 1280px; margin: 0 auto; padding: 40px 56px; }
.emblem-side { display: grid; justify-items: center; text-align: center; animation: rise 1s var(--ease) both; }
.emblem { position: relative; width: 300px; height: 300px; display: grid; place-items: center; margin-bottom: 26px; }
.emblem-logo { width: 168px; height: 168px; position: relative; z-index: 3; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(183, 141, 128, .25));
  animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.ring { position: absolute; inset: 0; border-radius: 50%; }
.ring.r1 { inset: 18px; background: conic-gradient(from 0deg, transparent 0 55%, rgba(222, 196, 182, .9) 70%, transparent 85%); -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 64%, #000 65%, #000 66%, transparent 67%); animation: spin 7s linear infinite; }
.ring.r2 { inset: -6px; border: 1px dashed rgba(199, 162, 150, .28); animation: spin 60s linear infinite reverse; }
.ring.r3 { inset: 46px; background: radial-gradient(circle, rgba(183, 141, 128, .28), transparent 62%); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .65; } }
.orbit { position: absolute; inset: 0; border-radius: 50%; animation: spin 14s linear infinite; }
.orbit.o2 { inset: 22px; animation-duration: 19s; animation-direction: reverse; }
.orbit.o3 { inset: -18px; animation-duration: 26s; }
.orbit span { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 14px var(--c), 0 0 34px var(--c); }
.brand-title { font-family: var(--font-display); font-weight: 400; font-size: 58px; line-height: 1; margin: 0; letter-spacing: -.5px;
  background: linear-gradient(180deg, #F5EFE9, #DCCAC0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-title em { font-style: normal; font-weight: 600; background: linear-gradient(120deg, #DEC4B6, #B78D80 40%, #EBE4E0 50%, #B78D80 60%, #885F52);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.brand-tag { color: #C3B7B3; max-width: 440px; margin: 14px 0 26px; font-size: 15px; }
.live { display: grid; gap: 14px; justify-items: center; }
.live-clock b { font-family: var(--font-num); font-weight: 200; font-size: 44px; letter-spacing: 2px; color: #EBE4E0; font-variant-numeric: tabular-nums; }
.live-clock span { display: block; font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; color: #96818D; margin-top: 2px; }
.live-sess { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.live-sess .s { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: rgba(25, 20, 23, .55); border: 1px solid rgba(199, 162, 150, .14); color: #AC99A4; backdrop-filter: blur(8px); }
.live-sess .s i { width: 7px; height: 7px; border-radius: 50%; background: #50464C; }
.live-sess .s.open { color: #F3EAE2; border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.live-sess .s.open i { background: var(--c); box-shadow: 0 0 10px var(--c); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.card-side { display: grid; justify-items: center; gap: 16px; animation: rise 1s .15s var(--ease) both; }
.auth-card { position: relative; width: min(430px, 100%); padding: 34px 32px 26px; border-radius: 28px; display: grid; gap: 16px;
  background: linear-gradient(160deg, rgba(40, 32, 37, .72), rgba(18, 16, 17, .78)); border: 1px solid rgba(199, 162, 150, .2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(235, 228, 224, .08); backdrop-filter: blur(22px) saturate(1.3); overflow: hidden; }
.card-glow { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(222, 196, 182, .85) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: glowspin 6s linear infinite; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes glowspin { to { --a: 360deg; } }
.auth-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.card-mark { width: 46px; height: 46px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.auth-card h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 28px; color: #F4ECE5; }
.auth-card header p { margin: 2px 0 0; font-size: 12.5px; color: #96818D; letter-spacing: .3px; }
.fx { position: relative; display: block; }
.fx input { width: 100%; height: 56px; border-radius: 16px; border: 1px solid rgba(199, 162, 150, .16); background: rgba(10, 8, 9, .55); color: #F5EFEA;
  padding: 18px 48px 4px 50px; outline: none; font-size: 15px; transition: border-color .25s, box-shadow .25s, background .25s; }
.fx input.mono { font-family: var(--font-mono); letter-spacing: 1px; font-size: 14px; }
.fx input:focus { border-color: rgba(222, 196, 182, .65); box-shadow: 0 0 0 4px rgba(183, 141, 128, .14), 0 10px 30px -12px rgba(183, 141, 128, .5); background: rgba(14, 10, 12, .7); }
.fx em { position: absolute; left: 50px; top: 18px; font-style: normal; color: #8C7884; font-size: 14.5px; pointer-events: none; transition: all .22s var(--ease); }
.fx input:focus + em, .fx input:not(:placeholder-shown) + em { top: 8px; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #B78D80; font-weight: 700; }
.fx-ic { position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; color: #9B867F; }
.fx-ic svg, .eye svg, .go svg, footer svg, .secure-note svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx input:focus ~ .fx-ic, .fx:focus-within .fx-ic { color: #DEC4B6; }
.eye { position: absolute; right: 10px; top: 12px; width: 34px; height: 32px; border: 0; background: none; color: #8C7884; cursor: pointer; border-radius: 8px; }
.eye:hover { color: #DEC4B6; background: rgba(199, 162, 150, .08); }
.eye svg { width: 18px; height: 18px; }
.msg { min-height: 0; font-size: 13px; color: #FFB2AA; display: none; padding: 10px 12px; border-radius: 12px; background: rgba(240, 100, 90, .1); border: 1px solid rgba(240, 100, 90, .3); }
.msg.show { display: block; animation: rise .3s var(--ease); }
.msg.ok { color: #A3E9C6; background: rgba(76, 195, 138, .1); border-color: rgba(76, 195, 138, .3); }
.go { position: relative; height: 56px; border: 0; border-radius: 16px; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 15.5px; letter-spacing: .3px; color: #2A1822;
  background: linear-gradient(135deg, #EAD3C6, #CBA79B 50%, #A98073); box-shadow: 0 16px 36px -14px rgba(177, 129, 115, .9), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s; }
.go:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 20px 44px -14px rgba(177, 129, 115, 1), inset 0 1px 0 rgba(255,255,255,.6); }
.go:active { transform: scale(.98); }
.go svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.go:hover svg { transform: translateX(4px); }
.go-shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 3.5s ease-in-out infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.go.busy span { opacity: .6; } .go.busy::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(23,14,19,.3); border-top-color: #2A1822; animation: spin .7s linear infinite; }
.go.busy svg { display: none; }
.auth-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.link { border: 0; background: none; color: #B99E96; cursor: pointer; font-size: 13px; padding: 4px 0; }
.link:hover { color: #EAD6CC; text-decoration: underline; }
.lic { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9DDFBF; }
.lic svg { width: 15px; height: 15px; }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8C7884; margin: 0; text-align: center; }
.secure-note svg { width: 14px; height: 14px; flex: none; }
.frozen-banner { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(106, 168, 247, .1); border: 1px solid rgba(106, 168, 247, .35); color: #BFD8FF; font-size: 12.5px; }
.frozen-banner b { color: #E1EDFF; font-size: 13.5px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.flash { position: fixed; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; z-index: 50; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #F3EAE2, #C7A296 40%, #906356 70%, #140E11); }
body.entering .flash { animation: flash 1s var(--ease) forwards; }
body.entering .auth-card { animation: out-up .6s var(--ease) forwards; }
body.entering .emblem-side { animation: out-fade .5s var(--ease) forwards; }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1); } 30% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, -50%) scale(400); } }
@keyframes out-up { to { opacity: 0; transform: translateY(-30px) scale(.96); } }
@keyframes out-fade { to { opacity: 0; transform: scale(1.06); } }

/* configurare + carantină */
.setup-card { width: min(560px, 100%); }
.steps { display: flex; gap: 6px; margin-bottom: 4px; } .steps i { flex: 1; height: 4px; border-radius: 4px; background: rgba(199,162,150,.15); }
.steps i.on { background: linear-gradient(90deg, #DEC4B6, #B78D80); }
.kit { display: grid; gap: 12px; }
.kit .k { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: rgba(9, 6, 8, .5); border: 1px solid rgba(199, 162, 150, .2); }
.kit .k b { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: #B78D80; }
.kit .k code { font-family: var(--font-mono); font-size: 15px; color: #F2E8DF; user-select: all; word-break: break-all; }
.kit .k small { color: #96818D; font-size: 12px; }
.auth-card .field label { color: #9B867F; }
.auth-card .input { background: rgba(10, 8, 9, .55); border-color: rgba(199, 162, 150, .16); height: 46px; }

@media (max-width: 960px) {
  body.auth { overflow: auto; }
  .auth-wrap { grid-template-columns: 1fr; padding: 28px 18px; gap: 24px; }
  .emblem { width: 200px; height: 200px; } .emblem-logo { width: 112px; height: 112px; }
  .brand-title { font-size: 40px; } .live-clock b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .aurora i, .orbit, .ring, .grid-floor, .emblem-logo, .go-shine, .card-glow { animation: none !important; } }
.frozen-banner.sealed { display: flex; align-items: center; gap: 12px; background: rgba(183, 141, 128, .1); border-color: rgba(183, 141, 128, .4); color: #EEE3DD; }
.frozen-banner.sealed.hidden { display: none; }
.frozen-banner.sealed svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #E6CEC2; stroke-width: 1.8; animation: breathe 2.6s ease-in-out infinite; }
.frozen-banner.sealed b { color: #F7F0E9; display: block; }
