:root {
  --blue: #2597e6;
  --blue-light: #62bcf6;
}

* { box-sizing: border-box; }
body { font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
body.auth-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 240;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  color: #00111f;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: auto; }
.site-nav { display: flex; align-items: center; }
.site-nav > a:not(.button) { text-decoration: none; font-size: 13px; font-weight: 600; }

.button {
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(37, 151, 230, .18);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover,
.button:focus-visible { background: #1689d7; border-color: #1689d7; transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 17px; font-size: 12px; }
.button-blue { background: var(--blue); border-color: var(--blue); }
.full { width: 100%; }

.auth-modal {
  position: fixed;
  z-index: 180;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(2, 12, 20, .72);
  backdrop-filter: blur(14px);
}

.auth-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(900px, calc(100svh - 32px));
  overflow: auto;
  padding: 46px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: #071622;
  color: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
}

.auth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 23px;
  cursor: pointer;
}

.auth-head { display: flex; justify-content: center; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.auth-panel { min-width: 0; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label,
.auth-password-field { display: flex; flex-direction: column; gap: 7px; }
.auth-form input { outline: 0; }
.auth-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-message { min-height: 18px; margin: 0; color: #ff9a9a; font-size: 11px; }
.auth-recovery { display: grid; gap: 22px; }
.auth-recovery-head { display: grid; gap: 10px; }
.auth-recovery-head p { margin: 0; color: var(--blue-light); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.auth-recovery-head h2 { margin: 0; font-size: 46px; font-weight: 400; line-height: 1; }
.auth-recovery-head span { color: #9eb1bf; font-size: 13px; line-height: 1.55; }
.auth-recovery-link { border: 0; background: transparent; cursor: pointer; }
.auth-recovery-message { min-height: 18px; margin: 0; color: #b9e7c8; font-size: 11px; line-height: 1.5; }
.auth-recovery-message.is-error { color: #ff9a9a; }

@media (max-width: 600px) {
  .auth-field-pair { grid-template-columns: 1fr; }
}
