:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #07152a;
}
* { box-sizing: border-box; }
body { margin: 0; }
.login-shell {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 48px 24px;
  background: radial-gradient(ellipse at 50% 14%, #173a65 0%, #0b2444 36%, #061326 80%);
}
.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .24;
  background-image: linear-gradient(#fff1 1px, transparent 1px), linear-gradient(90deg, #fff1 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(transparent, #000 50%, transparent);
  animation: grid-drift 32s linear infinite;
}
.login-shell::after {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: -1;
  border: 1px solid #c2d9f316;
  pointer-events: none;
}
.ambient { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.ambient-one { width: 580px; height: 580px; top: -390px; left: -160px; background: #4777ae; filter: blur(120px); opacity: .32; animation: ambient-drift-one 19s ease-in-out infinite alternate; }
.ambient-two { width: 600px; height: 600px; right: -340px; bottom: -400px; background: #bd9252; filter: blur(130px); opacity: .23; animation: ambient-drift-two 24s ease-in-out infinite alternate; }
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.login-content { width: min(100%, 460px); text-align: center; animation: appear .8s ease both; }
.eyebrow, .footer { display: flex; justify-content: center; align-items: center; gap: 13px; font-size: 10px; font-weight: 700; letter-spacing: .23em; color: #9bafc7; }
.eyebrow span { width: 26px; height: 1px; background: #c7a66a; }
.login-panel { margin-top: 38px; }
.logo-button { display: block; list-style: none; cursor: pointer; outline-offset: 10px; -webkit-tap-highlight-color: transparent; }
.logo-button::-webkit-details-marker { display: none; }
.logo-halo {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(190px, 43vw, 230px);
  aspect-ratio: 1;
  margin-inline: auto;
  padding: 7px;
  border: 1px solid #e1c594b3;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 10px #ffffff0a, 0 0 0 11px #c2dcf31c, 0 25px 65px #0008, 0 0 65px #6ca9eb30;
  transition: transform .4s ease, box-shadow .4s ease;
}
.logo-halo::before, .logo-halo::after { content: ""; position: absolute; inset: -24px; border: 1px solid #d7b97a35; border-radius: 50%; pointer-events: none; }
.logo-halo::after { inset: -32px; border-color: #b9d5ed14; }
.logo-halo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.logo-button:hover .logo-halo, .logo-button:focus-visible .logo-halo { transform: translateY(-5px) scale(1.025); box-shadow: 0 0 0 10px #ffffff12, 0 0 0 11px #d7b97a60, 0 30px 70px #0009, 0 0 75px #6ca9eb48; }
.intro { margin-top: 45px; }
.intro h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 6vw, 39px); font-weight: 400; letter-spacing: -.035em; color: #fff; }
.intro p { margin: 10px 0 0; color: #a8bdd3; font-size: 14px; letter-spacing: .015em; }
.invitation { display: inline-flex; align-items: center; gap: 12px; margin: 30px 0 0; padding: 10px 16px; border: 1px solid #b8cde52c; border-radius: 99px; background: #ffffff08; color: #c5d2df; font-size: 12px; transition: border-color .2s, background .2s; }
.logo-button:hover .invitation { border-color: #d7b97a80; background: #ffffff10; }
.invitation span { color: #e0bf82; animation: float 1.8s ease-in-out infinite; }
.form-wrap { padding-top: 28px; }
.login-panel[open] .invitation { display: none; }
.login-panel[open] .form-wrap { animation: rise .45s ease both; }
.form-wrap form { text-align: left; padding: 25px; border: 1px solid #c5d8ec25; border-radius: 18px; background: linear-gradient(145deg, #ffffff12, #ffffff07); box-shadow: 0 20px 45px #0003; backdrop-filter: blur(16px); }
.form-wrap label { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .07em; color: #d0deea; }
.password-field { display: flex; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid #b5cce235; border-radius: 10px; background: #04112777; transition: border-color .2s, box-shadow .2s; }
.password-field:focus-within { border-color: #d2b274; box-shadow: 0 0 0 3px #d2b27420; }
.password-field span { color: #d6b77e; font-size: 17px; }
.password-field input { width: 100%; padding: 15px 0; border: 0; background: transparent; outline: 0; font: inherit; font-size: 14px; color: #fff; }
.password-field input::placeholder { color: #7d93ab; }
.submit-button { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 15px; border: 0; border-radius: 10px; background: #d2b071; color: #10243b; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; transition: background .2s, transform .2s; }
.submit-button:hover { background: #e6c88c; transform: translateY(-2px); }
.error { margin: 12px 0 0; color: #ffb8ae; font-size: 13px; line-height: 1.5; }
.footer { margin-top: 48px; color: #778da7; font-size: 9px; }
.footer-line { width: 25px; height: 1px; background: #7891ac66; }
@keyframes particle-rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .95; } 35% { opacity: .48; } 55% { opacity: 1; } 78% { opacity: .72; } 100% { transform: translate3d(38px, -110vh, 0); opacity: 0; } }
@keyframes grid-drift { from { background-position: 0 0; } to { background-position: 72px 72px; } }
@keyframes ambient-drift-one { from { transform: translate(0, 0) scale(1); } to { transform: translate(140px, 100px) scale(1.16); } }
@keyframes ambient-drift-two { from { transform: translate(0, 0) scale(1); } to { transform: translate(-160px, -90px) scale(1.15); } }
@keyframes appear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 480px) { .login-shell { padding: 38px 25px; } .login-shell::after { inset: 10px; } .login-panel { margin-top: 35px; } .intro { margin-top: 39px; } .footer { margin-top: 36px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
