
:root {
  --oy-auth-line: rgba(199, 156, 87, .28);
  --oy-auth-gold: #c79c57;
  --oy-auth-gold-2: #dfb86f;
  --oy-auth-text: #f2eee8;
  --oy-auth-muted: #9da4ad;
}
body.oy-auth-open { overflow: hidden !important; }
.oy-auth-modal {
  position: fixed; inset: 0; z-index: 999999; display: none;
  align-items: center; justify-content: center; padding: 18px; font-family: inherit;
}
.oy-auth-modal.is-open { display: flex; }
.oy-auth-backdrop {
  position: absolute; inset: 0; background: rgba(2,5,9,.78); backdrop-filter: blur(7px);
}
.oy-auth-panel {
  position: relative; width: min(100%, 470px);
  max-height: min(760px, calc(100vh - 28px)); overflow: auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(199,156,87,.08), transparent 35%),
    linear-gradient(180deg, #101720 0%, #0a0f15 100%);
  border: 1px solid var(--oy-auth-line); border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0,0,0,.52);
  padding: 26px; color: var(--oy-auth-text);
}
.oy-auth-close {
  position: absolute; top: 13px; right: 15px; width: 40px; height: 40px;
  border: 0; background: transparent; color: var(--oy-auth-muted);
  font-size: 29px; line-height: 1; cursor: pointer;
}
.oy-auth-brand { display: flex; align-items: center; gap: 13px; padding-right: 38px; margin-bottom: 30px; }
.oy-auth-mark {
  width: 48px; height: 48px; border: 1px solid var(--oy-auth-gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--oy-auth-gold-2);
  font-family: Georgia, serif; letter-spacing: .04em;
}
.oy-auth-name { font-family: Georgia, serif; letter-spacing: .16em; font-size: 15px; }
.oy-auth-tagline {
  margin-top: 3px; color: var(--oy-auth-gold); text-transform: uppercase;
  letter-spacing: .22em; font-size: 9px;
}
.oy-auth-view h2 {
  color: var(--oy-auth-text); font-family: Georgia, serif; font-size: 30px;
  font-weight: 400; margin: 0 0 7px;
}
.oy-auth-intro { color: var(--oy-auth-muted); margin: 0 0 22px; line-height: 1.55; }
.oy-auth-form { display: grid; gap: 15px; }
.oy-auth-form label > span {
  display: block; margin-bottom: 7px; color: #d9dce0; font-size: 13px; font-weight: 650;
}
.oy-auth-form input[type="text"], .oy-auth-form input[type="password"] {
  width: 100%; min-height: 50px; box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.14); border-radius: 11px;
  background: #0b1118; color: #fff; padding: 0 14px; outline: none;
}
.oy-auth-form input:focus {
  border-color: var(--oy-auth-gold);
  box-shadow: 0 0 0 3px rgba(199,156,87,.12);
}
.oy-auth-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px;
}
.oy-auth-check { display: inline-flex !important; align-items: center; gap: 7px; color: var(--oy-auth-muted); }
.oy-auth-check span { margin: 0 !important; color: var(--oy-auth-muted) !important; font-weight: 400 !important; }
.oy-auth-link { color: var(--oy-auth-gold-2); text-decoration: none; }
.oy-auth-submit {
  min-height: 52px; margin-top: 2px; border: 1px solid #b98640; border-radius: 11px;
  background: linear-gradient(180deg, #b67a2f, #8a531e);
  color: #fff; font-weight: 800; letter-spacing: .02em; cursor: pointer;
}
.oy-auth-submit:hover { filter: brightness(1.08); }
.oy-auth-error {
  margin: -7px 0 18px; padding: 11px 13px;
  border: 1px solid rgba(210,87,87,.36);
  background: rgba(147,42,42,.13); border-radius: 10px;
  color: #f0b6b6; font-size: 13px; line-height: 1.45;
}
@media (max-width: 520px) {
  .oy-auth-modal { padding: 0; align-items: flex-end; }
  .oy-auth-panel { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 24px 20px 28px; }
  .oy-auth-view h2 { font-size: 27px; }
}
