/* Neda logo build: 0–3.0 s forming (the Persian line fades up in 3D from 2.2 s), then held. Add class "play" to the svg to run it. */
.neda-logo.play .nl-trace { stroke-dasharray: 1 1; animation: nl-trace 1.05s cubic-bezier(.65,0,.35,1) both, nl-fade-out .2s ease 1.25s both; }
.neda-logo.play .nl-body { animation: nl-fade-in .5s cubic-bezier(.4,0,.2,1) .75s both; }
.neda-logo .nl-carve { transform-box: fill-box; transform-origin: 50% 55%; }
.neda-logo.play .nl-carve-top { animation: nl-carve .7s cubic-bezier(.22,1,.36,1) 1.05s both; }
.neda-logo.play .nl-carve-tip { animation: nl-carve .6s cubic-bezier(.22,1,.36,1) 1.2s both; }
.neda-logo .nl-letter { transform-box: fill-box; transform-origin: 50% 100%; }
.neda-logo.play .nl-letter { animation: nl-rise .55s cubic-bezier(.22,1,.36,1) calc(1.6s + var(--i, 0) * .1s) both; }
.neda-logo .nl-wipe-l { transform-box: fill-box; transform-origin: 0 50%; }
.neda-logo .nl-wipe-r { transform-box: fill-box; transform-origin: 100% 50%; }
.neda-logo.play .nl-wipe-l { animation: nl-wipe .55s cubic-bezier(.45,0,.2,1) 2.15s both; }
.neda-logo .nl-farsi-3d { transform-box: fill-box; transform-origin: 50% 100%; }
.neda-logo.play .nl-farsi-3d { animation: nl-fa-in .8s cubic-bezier(.2,.7,.2,1) 2.2s both; }
.neda-logo.play .nl-depth { animation: nl-depth .45s cubic-bezier(.3,.7,.3,1) 2.55s both; }
.neda-logo.play .nl-sheen { animation: nl-sheen .5s cubic-bezier(.45,0,.55,1) 2.65s both; }
@keyframes nl-fa-in {
  from { opacity: 0; filter: blur(1.6px); transform: translateY(4px) scaleY(.45) skewX(-14deg); }
  55%  { opacity: .85; filter: blur(.4px); }
  to   { opacity: 1; filter: blur(0); transform: none; } }
@keyframes nl-depth { from { transform: translate(0, 0); opacity: 0 } to { transform: translate(var(--d, 1px), var(--d, 1px)); opacity: 1 } }
@keyframes nl-sheen { from { transform: skewX(-20deg) translateX(0); opacity: 1 } to { transform: skewX(-20deg) translateX(-180px); opacity: 1 } }
.neda-logo.play .nl-school { animation: nl-fade-in .55s ease 2.15s both; }
@keyframes nl-trace { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
@keyframes nl-fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes nl-fade-out { from { opacity: 1 } to { opacity: 0 } }
@keyframes nl-carve { from { transform: scale(.2); opacity: 0 } 40% { opacity: 1 } to { transform: scale(1); opacity: 1 } }
@keyframes nl-rise { from { transform: translateY(7px) scaleY(.85); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes nl-wipe { from { transform: scaleX(0) } to { transform: scaleX(1) } }
.neda-logo .nl-trace { opacity: 0; }
.neda-logo.play .nl-trace { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .neda-logo.play * { animation: none !important; } .neda-logo.play .nl-trace { opacity: 0; } }

/* The CSP forbids inline style attributes, so the per-element values live here. */
.neda-logo .nl-l1{--i:0}.neda-logo .nl-l2{--i:1}.neda-logo .nl-l3{--i:2}.neda-logo .nl-l4{--i:3}
.neda-logo .nl-d1{--d:1.2px}.neda-logo .nl-d2{--d:.9px}.neda-logo .nl-d3{--d:.6px}.neda-logo .nl-d4{--d:.3px}
.login-logo{display:block;width:min(45vw,200px);height:auto;margin:0 auto 1rem;overflow:visible}
@media (prefers-color-scheme: dark){.login-logo{background:#fff;border-radius:12px;padding:.75rem}}
.signin-form{max-width:320px;margin:0 auto;display:flex;flex-direction:column;gap:.5rem}.signin-form input{width:100%;box-sizing:border-box;padding:.55rem .7rem;font:inherit;border:1px solid #8aa;border-radius:6px}.signin-form button{align-self:center;min-width:6.5rem;width:auto}
/* Sign-in card: a soft teal wash so the logo's white lettering stands out instead of fading into the page. */
#signin:not([hidden]){max-width:420px;margin:2.5rem auto;padding:2rem 1.5rem 1.75rem;border-radius:16px;border-top:5px solid var(--teal-dark);box-shadow:0 10px 30px rgba(10,92,91,.18);background:linear-gradient(180deg,var(--teal-soft) 0%,var(--surface) 70%)}
#signin .login-logo{filter:drop-shadow(0 4px 8px rgba(0,71,77,.3))}
#signin label{font-weight:600;color:var(--teal-dark)}
@media (prefers-color-scheme: dark){#signin:not([hidden]){background:linear-gradient(180deg,#1f3a3a 0%,var(--surface) 70%)}#signin label{color:inherit}}
.signin-form input{text-align:right}
