/* Ocurus Studio — auth pages (sign in). Mirrors docs/design/admin-2026/Login.dc.html */
.os-auth-body { min-height: 100vh; }
.os-auth { display: grid; grid-template-columns: 560px minmax(0, 1fr); min-height: 100vh; background: var(--os-bg); }
.os-auth__form { display: flex; flex-direction: column; padding: 40px 64px 32px; background: #0D1220; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.os-auth__logo { height: 24px; width: auto; align-self: flex-start; display: block; }
.os-auth__grow { flex-grow: 1; }
.os-auth__stack { display: flex; flex-direction: column; gap: 28px; }
.os-auth__head { display: flex; flex-direction: column; gap: 8px; }
.os-auth__head h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: #FFFFFF; }
.os-auth__head p { margin: 0; font-size: 14px; color: var(--os-muted); }
.os-auth__fields { display: flex; flex-direction: column; gap: 14px; }
.os-auth__label-row { display: flex; justify-content: space-between; align-items: baseline; }
.os-auth__label-row a { font-size: 12px; }
.os-auth__input { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 10px; background: #111827; border: 1px solid rgba(255, 255, 255, 0.10); color: var(--os-muted); }
.os-auth__input:focus-within { border-color: var(--os-accent); box-shadow: 0 0 0 3px rgba(59, 107, 255, 0.2); }
.os-auth__input.is-invalid { border-color: var(--os-danger); }
.os-auth__input input { flex-grow: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #FFFFFF; font: inherit; font-size: 14px; height: 100%; }
.os-auth__input input::placeholder { color: var(--os-faint); }
.os-auth__input input:-webkit-autofill { -webkit-text-fill-color: #FFFFFF; -webkit-box-shadow: 0 0 0 40px #111827 inset; }
.os-auth__eye { background: none; border: 0; padding: 0; color: var(--os-muted); cursor: pointer; display: inline-flex; }
.os-auth__eye:hover { color: #FFFFFF; }
.os-auth__submit { height: 46px; font-size: 15px; margin-top: 4px; width: 100%; }
.os-auth__or { display: flex; align-items: center; gap: 12px; }
.os-auth__or span:first-child, .os-auth__or span:last-child { flex-grow: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.os-auth__social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.os-auth__social a { height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); color: #E6EAF2; font-size: 13px; font-weight: 600; }
.os-auth__social a:hover { border-color: rgba(255, 255, 255, 0.3); color: #FFFFFF; background: rgba(255, 255, 255, 0.04); }
.os-auth__foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--os-muted); }
.os-auth__foot a { font-weight: 600; }
.os-auth__alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; background: var(--os-ember-soft); border: 1px solid rgba(255, 158, 82, 0.35); color: #E6EAF2; }
.os-auth__alert--ok { background: var(--os-ok-soft); border-color: rgba(74, 222, 128, 0.35); }

/* ---------- right panel: 3D scene ---------- */
.os-auth__panel { position: relative; overflow: hidden; background: radial-gradient(90% 80% at 60% 45%, #22305A 0%, #101A33 45%, #0A0E17 100%); perspective: 1400px; perspective-origin: 50% 45%; }
.os-auth__glow { position: absolute; left: 50%; top: 46%; width: 560px; height: 560px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(59, 107, 255, 0.22), rgba(59, 107, 255, 0) 65%); filter: blur(30px); pointer-events: none; }
.os-auth__scene { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; transition: transform 0.1s linear; }
.os-auth__layer { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.os-auth__ring { position: absolute; left: 50%; top: 46%; width: 620px; height: 620px; transform: translate(-50%, -50%); max-width: 90%; overflow: visible; }
.os-auth__ring-spin { transform-origin: 310px 310px; animation: os-spin 90s linear infinite; }
@keyframes os-spin { to { transform: rotate(360deg); } }

.os-auth__card { position: absolute; left: 50%; top: 46%; width: 440px; max-width: 78%; aspect-ratio: 16 / 10; transform: translate(-50%, -50%); border-radius: 18px; overflow: hidden; background: #111827; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 50px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; pointer-events: auto; }
.os-auth__card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.os-auth__card-img--empty { background: linear-gradient(160deg, #1E3A8A 0%, #16224A 45%, #0D1220 100%); }
.os-auth__card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 23, 0.15) 0%, rgba(10, 14, 23, 0.05) 40%, rgba(10, 14, 23, 0.85) 100%); }
.os-auth__card-glare { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none; }
.os-auth__card-top { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; justify-content: space-between; align-items: center; }
.os-auth__card-meta { font-size: 11px; color: #C5CBD8; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.os-auth__card-body { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.os-auth__card-body h2 { font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: #FFFFFF; margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.os-auth__card-body p { margin: 0; font-size: 13px; color: #C5CBD8; }
.os-auth__hot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(59, 107, 255, 0.5); }
.os-auth__hot > span { position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.8); animation: os-pulse 2.4s ease-out infinite; }
.os-auth__hot--a { left: 28%; top: 44%; } .os-auth__hot--b { left: 61%; top: 38%; } .os-auth__hot--b > span { animation-delay: 0.8s; } .os-auth__hot--c { left: 78%; top: 56%; background: #FF9E52; box-shadow: 0 0 0 3px rgba(255, 158, 82, 0.45); } .os-auth__hot--c > span { animation-delay: 1.6s; }
@keyframes os-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }

.os-auth__chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(17, 24, 39, 0.82); border: 1px solid rgba(255, 255, 255, 0.14); color: #E6EAF2; font-size: 13px; font-weight: 500; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); }
.os-auth__chip .os-mono { font-size: 12px; color: #E6EAF2; }
.os-auth__chip--a { left: calc(50% + 150px); top: calc(46% - 190px); }
.os-auth__chip--b { left: calc(50% - 300px); top: calc(46% + 120px); }
.os-auth__float { animation: os-float 7s ease-in-out infinite; }
.os-auth__float--slow { animation-duration: 9s; animation-delay: -3s; }
.os-auth__float--fast { animation-duration: 5.5s; animation-delay: -1.5s; }
@keyframes os-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }
.os-dot { width: 8px; height: 8px; border-radius: 4px; display: inline-block; flex: none; }
.os-dot--accent { background: #3B6BFF; box-shadow: 0 0 10px #3B6BFF; }

.os-auth__stats { position: absolute; right: 48px; top: 40px; display: flex; gap: 20px; }
.os-auth__stats div { display: flex; flex-direction: column; }
.os-auth__stats .os-mono { font-size: 20px; color: #FFFFFF; }
.os-auth__stats small { font-size: 11px; color: var(--os-muted); }
.os-auth__feature { position: absolute; left: 64px; bottom: 48px; right: 48px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.os-auth__hint { font-size: 11px; color: var(--os-faint); letter-spacing: 0.04em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .os-auth__float, .os-auth__ring-spin, .os-auth__hot > span { animation: none; } }
@media (max-height: 760px) { .os-auth__card { width: 380px; } .os-auth__chip--a { top: calc(46% - 160px); } }
.os-auth__lang { font-family: var(--os-mono); font-size: 11px; color: var(--os-faint); }
.os-auth__lang a { color: inherit; }

/* ---------- extras shared by every auth page ---------- */
.os-auth__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(230, 234, 242, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 234, 242, 0.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 55% 45%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(70% 70% at 55% 45%, #000 20%, transparent 80%); }
.os-auth__pan { animation: os-pan 36s ease-in-out infinite alternate; object-position: 0% 50%; }
@keyframes os-pan { to { object-position: 100% 50%; } }
.os-auth__chip--c { left: calc(50% + 120px); top: calc(46% + 165px); }
.os-auth__back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--os-muted); align-self: flex-start; }
.os-auth__back:hover { color: #FFFFFF; }
.os-auth__mark { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--os-accent-soft); color: var(--os-accent-ink); border: 1px solid rgba(59, 107, 255, 0.35); }
.os-auth__alert--danger { background: var(--os-danger-soft); border-color: rgba(248, 113, 113, 0.4); }
.os-auth__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--os-dim); }
.os-auth__perks li { display: flex; align-items: center; gap: 10px; }
.os-dot--ok { background: var(--os-ok); box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
.os-auth__strength { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.os-auth__strength span { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.10); transition: background 0.2s; }
.os-auth__strength span.is-1 { background: var(--os-danger); } .os-auth__strength span.is-2 { background: var(--os-ember); } .os-auth__strength span.is-3 { background: #FBBF24; } .os-auth__strength span.is-4 { background: var(--os-ok); }
.os-auth__strength-label { min-height: 14px; }
.os-auth__eye.is-on { color: var(--os-accent-ink); }
.os-auth__submit[disabled] { opacity: 0.75; cursor: progress; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.os-auth__spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #FFFFFF; animation: os-spin 0.8s linear infinite; display: inline-block; }
.os-auth__input input:-webkit-autofill, .os-auth__input input:-webkit-autofill:focus { transition: background-color 9999s ease-in-out 0s; }

@media (max-width: 1024px) {
  .os-auth { grid-template-columns: minmax(0, 1fr); }
  .os-auth__panel { display: none; }
  .os-auth__form { border-right: 0; padding: 32px 24px; }
}
