:root {
  color-scheme: dark;
  font-family: "Manrope", system-ui, sans-serif;
  background: #070707;
  color: #ede6d6;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #070707; }
button,input { font: inherit; }

.auth-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 48px;
  background:
    radial-gradient(ellipse 180px 300px at 50% 55%, rgba(192,143,27,.18), transparent 72%),
    radial-gradient(ellipse 420px 620px at 50% 52%, rgba(104,86,32,.12), transparent 68%),
    #070707;
}

.auth-shell::before {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent, rgba(213,175,55,.045), transparent 58%);
  content: "";
  animation: auth-glow-turn 18s linear infinite;
  pointer-events: none;
}

.auth-panel { position: relative; z-index: 1; width: min(100%, 440px); }
.auth-wordmark { display: inline-flex; margin: 0 0 7px; color: #ede6d6; font-size: clamp(39px, 7vw, 48px); font-weight: 400; line-height: 1.15; letter-spacing: -.07em; text-decoration: none; }
.auth-wordmark em { color: #f2ca50; font-style: normal; }
.auth-intro { margin: 0 0 38px; color: #d0c5af; font-size: 14px; line-height: 1.55; }
.auth-form { display: grid; gap: 9px; }
.auth-form > label,.auth-label-row label { margin-top: 13px; color: #d0c5af; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.auth-label-row { display: flex; align-items: end; justify-content: space-between; margin-top: 13px; }
.auth-label-row label { margin: 0; }
.auth-text-link { padding: 0; border: 0; color: #f2ca50; background: transparent; font-size: 14px; cursor: pointer; }

.auth-field { position: relative; display: flex; align-items: center; min-height: 50px; overflow: hidden; border: 1px solid rgba(77,70,53,.58); border-radius: 8px; background: #121212; transition: border-color .2s, box-shadow .2s; }
.auth-field:focus-within { border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212,175,55,.1); }
.auth-field > svg { position: absolute; z-index: 1; left: 16px; width: 18px; height: 18px; fill: none; stroke: #d0c5af; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.auth-field input { width: 100%; min-width: 0; min-height: 48px; padding: 0 50px; border: 0; outline: 0; color: #f4eee2; background: transparent; font-size: 16px; }
.auth-field.auth-field-plain input { padding-left: 16px; }
.auth-field input::placeholder { color: rgba(208,197,175,.42); }
.password-toggle { position: absolute; right: 8px; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #d0c5af; background: transparent; cursor: pointer; }
.password-toggle:hover { color: #f2ca50; background: rgba(242,202,80,.07); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.auth-submit { width: 100%; min-height: 60px; margin-top: 15px; border: 0; border-radius: 9px; color: #181203; background: linear-gradient(180deg,#f5d563,#d6aa26); box-shadow: inset 0 1px rgba(255,255,255,.3),0 12px 30px rgba(201,162,39,.22); font-size: 20px; font-weight: 800; cursor: pointer; transition: transform .18s,filter .18s; }
.auth-submit:hover { filter: brightness(1.07); transform: translateY(-2px); }
.auth-submit:focus-visible,.password-toggle:focus-visible,.auth-text-link:focus-visible,.auth-socials button:focus-visible,.auth-switch a:focus-visible { outline: 3px solid #f2ca50; outline-offset: 3px; }

.auth-socials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; margin-top: 24px; }
.auth-socials button { display: flex; min-height: 36px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 5px; color: #111; background: linear-gradient(90deg,#ede6d6,#bab5a8); font-size: 12px; cursor: pointer; }
.auth-socials img { width: 16px; height: 16px; object-fit: contain; }
.auth-notice { min-height: 17px; margin: 8px 0 0; color: #b6a475; font-size: 11px; text-align: center; }
.auth-switch { margin: 14px 0 0; color: #d0c5af; font-size: 14px; text-align: center; }
.auth-switch a { color: #f2ca50; text-underline-offset: 3px; }
.field-error { margin: 1px 0 3px; color: #ff8799; font-size: 12px; }
.form-alert { padding: 12px 14px; border-radius: 8px; color: #ffc2cb; background: rgba(145,0,28,.28); font-size: 13px; }

@keyframes auth-glow-turn { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .auth-shell { place-items: center; padding: 36px 48px; }
  .auth-panel { width: 100%; max-width: 345px; }
  .auth-wordmark { font-size: clamp(39px,12vw,48px); }
  .auth-intro { margin-bottom: 29px; }
}

@media (max-width: 370px) {
  .auth-shell { padding: 30px 28px; }
  .auth-wordmark { font-size: 39px; }
}

@media (prefers-reduced-motion: reduce) { .auth-shell::before { animation: none; } }
