.sw-auth-modal[hidden] { display: none !important; }
.sw-auth-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 1.25rem;
  background: rgba(2, 8, 18, 0.82); backdrop-filter: blur(8px);
}
.sw-auth-dialog {
  width: min(100%, 410px); padding: 2rem;
  border: 1px solid rgba(201, 168, 76, 0.35); border-radius: 16px;
  background: #0a1628; box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  color: #fdf8ef; font-family: 'Jost', sans-serif;
}
.sw-auth-kicker {
  margin-bottom: 0.55rem; color: #c9a84c; font-size: 0.65rem;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.sw-auth-title {
  margin: 0 0 0.45rem; color: #fdf8ef;
  font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 500;
}
.sw-auth-copy { margin: 0 0 1.3rem; color: #9ba9c1; font-size: 0.8rem; line-height: 1.65; }
.sw-auth-field { display: block; margin: 0 0 0.9rem; }
.sw-auth-field > span:first-child, .sw-auth-field > label {
  display: block; margin-bottom: 0.4rem; color: #c9a84c;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.sw-password-control { display: block; position: relative; }
.sw-auth-field input {
  width: 100%; border: 1px solid rgba(201,168,76,0.3); border-radius: 8px;
  background: #071120; color: #fdf8ef; font: inherit; font-size: 0.88rem;
  padding: 0.8rem 0.9rem; outline: none;
}
.sw-password-control input { padding-right: 3.25rem; }
.sw-auth-field input:focus { border-color: #c9a84c; box-shadow: 0 0 0 2px rgba(201,168,76,0.13); }
.sw-password-toggle {
  position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 0; border-radius: 7px; background: transparent; color: #9ba9c1;
  cursor: pointer;
}
.sw-password-toggle:hover, .sw-password-toggle:focus-visible { color: #c9a84c; background: rgba(201,168,76,0.08); }
.sw-password-toggle svg {
  width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sw-password-toggle .sw-eye-closed { display: none; }
.sw-password-toggle.showing .sw-eye-open { display: none; }
.sw-password-toggle.showing .sw-eye-closed { display: block; }
.sw-auth-primary, .sw-auth-secondary, .sw-auth-link {
  font-family: 'Jost', sans-serif; cursor: pointer;
}
.sw-auth-primary {
  width: 100%; border: 0; border-radius: 8px; padding: 0.85rem 1rem;
  background: #c9a84c; color: #0a1628; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.sw-auth-primary:disabled { cursor: wait; opacity: 0.65; }
.sw-auth-choice {
  margin: 0.9rem 0 0; color: #9ba9c1; font-size: 0.72rem; text-align: center;
}
.sw-auth-inline-link {
  border: 0; padding: 0; background: none; color: #c9a84c;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline;
  text-underline-offset: 0.2em;
}
.sw-auth-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; }
.sw-auth-link, .sw-auth-secondary {
  border: 0; background: none; color: #9ba9c1; font-size: 0.7rem;
}
.sw-auth-link:hover, .sw-auth-secondary:hover { color: #c9a84c; }
.sw-auth-error, .sw-auth-success {
  min-height: 1.2rem; margin: 0.8rem 0 0; font-size: 0.72rem; line-height: 1.5;
}
.sw-auth-error { color: #ff9b9b; }
.sw-auth-success { color: #b8dca6; }
body.sw-auth-open { overflow: hidden; }
