:root {
  --bg: #ffffff;
  --fg: #0d0d0d;
  --muted: #6e6e80;
  --line: #e5e5e5;
  --soft: #f4f4f4;
  --btn: #0d0d0d;
  --btn-fg: #fff;
  --sans: "Söhne", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.auth-top { padding: 20px 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 16px;
}
.brand-mark { width: 22px; height: 22px; display: block; }
.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.auth-main h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-align: center;
}
.auth-card { width: 100%; }
.btn {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  transition: background .15s ease;
}
.btn:hover { background: var(--soft); }
.btn-primary {
  background: var(--btn);
  color: var(--btn-fg);
  border-color: var(--btn);
}
.btn-primary:hover { background: #2a2a2a; }
.g-icon, .apple-icon, .phone-icon { width: 18px; height: 18px; display: block; }
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.or::before, .or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.input {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 18px;
  margin-bottom: 10px;
  outline: none;
  font-size: 15px;
}
.input:focus { border-color: #b4b4b4; }
.link-btn {
  width: 100%;
  background: none;
  border: 0;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  padding: 8px;
}
.legal {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.legal-link {
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-size: inherit;
}
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.wa-modal[hidden] { display: none !important; }
.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.wa-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  height: min(640px, calc(100vh - 40px));
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.wa-modal-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.wa-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f4;
  font-size: 22px;
  cursor: pointer;
}
