:root {
  --wak-auth-font-body: "Inter", "Segoe UI", sans-serif;
  --wak-auth-font-headline: "Manrope", "Segoe UI", sans-serif;
  --wak-auth-bg: #f7f9fb;
  --wak-auth-panel: rgba(255, 255, 255, 0.92);
  --wak-auth-panel-border: rgba(198, 198, 205, 0.72);
  --wak-auth-panel-soft: #f2f4f6;
  --wak-auth-panel-strong: #eceef0;
  --wak-auth-shadow: 0 30px 80px rgba(25, 28, 30, 0.12);
  --wak-auth-text: #191c1e;
  --wak-auth-muted: #57657a;
  --wak-auth-subtle: #45464d;
  --wak-auth-primary: #0f172a;
  --wak-auth-primary-strong: #00174b;
  --wak-auth-primary-soft: #dbe1ff;
  --wak-auth-danger-bg: #fff1ef;
  --wak-auth-danger-border: #ffdad6;
  --wak-auth-danger-text: #a83d3d;
  --wak-auth-success-bg: #ecfdf3;
  --wak-auth-success-border: #c9f2da;
  --wak-auth-success-text: #0f7a56;
  --wak-auth-hero-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuBltQ-KLz3wa3R7jXXKL51qDehLiQ3wQaBarLa39HQWEtW3qhniIrYvdynTAstz0beruSBREFRuE5LCx-EdnmmD40eSa_kouVggDtzFNB8MIfa5Mk5zMvBtYzuySxUBgaoORy3XonEj4t1WRZKD_oDFNAXHALBqU7CNOk--KbP3ZlBkqBTJVZtAqn4Y9ShFImUNwFUmDFXgDOG_IRGYD5kGqGVPMxvdb0BnW3Bd7JfNeW5x_vgP0KM6plGS7FRJ6ZKuZvAhoYheKHg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.wak-auth-body {
  margin: 0;
  background: var(--wak-auth-bg);
  color: var(--wak-auth-text);
  font-family: var(--wak-auth-font-body);
}

.wak-auth-shell {
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(circle at top right, rgba(219, 225, 255, 0.8), transparent 32%),
    radial-gradient(circle at bottom left, rgba(213, 227, 252, 0.55), transparent 30%),
    var(--wak-auth-bg);
}

.wak-auth-hero {
  position: relative;
  display: none;
  width: 50%;
  min-height: 100vh;
  padding: 3rem;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 23, 75, 0.98), rgba(15, 23, 42, 0.94)),
    linear-gradient(160deg, #00174b 0%, #0f172a 52%, #0a1326 100%);
}

.wak-auth-hero::before,
.wak-auth-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3rem;
  opacity: 0.45;
}

.wak-auth-hero::before {
  width: 36rem;
  height: 36rem;
  left: -16rem;
  bottom: -9rem;
  transform: rotate(18deg);
}

.wak-auth-hero::after {
  width: 26rem;
  height: 26rem;
  right: -7rem;
  top: 4rem;
  transform: rotate(-15deg);
}

.wak-auth-hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(145deg, rgba(0, 23, 75, 0.25), rgba(0, 0, 0, 0.55)),
    var(--wak-auth-hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}

.wak-auth-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.wak-auth-brand,
.wak-auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wak-auth-brand-mark,
.wak-auth-mobile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #ffffff;
  color: var(--wak-auth-primary);
  font-family: var(--wak-auth-font-headline);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.wak-auth-mobile-brand {
  display: flex;
  margin-bottom: 2rem;
}

.wak-auth-mobile-mark {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
}

.wak-auth-brand-text strong,
.wak-auth-mobile-brand strong {
  display: block;
  font-family: var(--wak-auth-font-headline);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wak-auth-brand-text span,
.wak-auth-mobile-brand span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wak-auth-mobile-brand strong {
  color: var(--wak-auth-primary);
  font-size: 1.35rem;
}

.wak-auth-mobile-brand span {
  color: var(--wak-auth-muted);
}

.wak-auth-hero-copy {
  max-width: 34rem;
}

.wak-auth-hero-copy h1 {
  margin: 1.2rem 0 0;
  font-family: var(--wak-auth-font-headline);
  font-size: clamp(3.6rem, 2.2rem + 2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.wak-auth-hero-copy p {
  margin: 1.35rem 0 0;
  color: rgba(219, 225, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.75;
}

.wak-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wak-auth-hero-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.wak-auth-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wak-auth-content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wak-auth-panel {
  width: min(100%, 30rem);
  border-radius: 2rem;
  border: 1px solid var(--wak-auth-panel-border);
  background: var(--wak-auth-panel);
  box-shadow: var(--wak-auth-shadow);
  backdrop-filter: blur(20px);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem);
}

.wak-auth-panel-header {
  margin-bottom: 1.8rem;
}

.wak-auth-panel-header h2 {
  margin: 0;
  font-family: var(--wak-auth-font-headline);
  font-size: clamp(2.1rem, 1.5rem + 0.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.wak-auth-panel-header p {
  margin: 0.85rem 0 0;
  color: var(--wak-auth-muted);
  font-size: 1rem;
}

.wak-auth-flash,
.wak-auth-errors {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  line-height: 1.55;
}

.wak-auth-flash {
  border-color: var(--wak-auth-success-border);
  background: var(--wak-auth-success-bg);
  color: var(--wak-auth-success-text);
}

.wak-auth-errors {
  border-color: var(--wak-auth-danger-border);
  background: var(--wak-auth-danger-bg);
  color: var(--wak-auth-danger-text);
}

.wak-auth-form {
  display: grid;
  gap: 1.2rem;
}

.wak-auth-field {
  display: grid;
  gap: 0.5rem;
}

.wak-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wak-auth-label {
  color: var(--wak-auth-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wak-auth-input {
  width: 100%;
  min-height: 3.6rem;
  border: 1px solid #d9dee7;
  border-radius: 1rem;
  background: var(--wak-auth-panel-soft);
  color: var(--wak-auth-text);
  padding: 0 1rem;
  font-size: 1rem;
  outline: 0;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.wak-auth-input::placeholder {
  color: #8792a4;
}

.wak-auth-input:focus {
  border-color: rgba(15, 23, 42, 0.16);
  background: #ffffff;
  box-shadow: 0 0 0 0.28rem rgba(15, 23, 42, 0.08);
}

.wak-auth-help-link {
  color: #365db8;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.wak-auth-help-link:hover,
.wak-auth-help-link:focus-visible {
  text-decoration: underline;
}

.wak-auth-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.wak-auth-captcha-note {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: var(--wak-auth-panel-strong);
  color: var(--wak-auth-subtle);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.wak-auth-submit {
  width: 100%;
  min-height: 3.6rem;
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--wak-auth-primary), var(--wak-auth-primary-strong));
  color: #ffffff;
  font-family: var(--wak-auth-font-headline);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 20px 40px rgba(0, 23, 75, 0.18);
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.wak-auth-submit:hover,
.wak-auth-submit:focus-visible {
  opacity: 0.94;
  transform: translateY(-1px);
}

.wak-auth-submit:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.18);
  outline-offset: 3px;
}

.wak-auth-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.wak-auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.45rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid #d9dee7;
  background: #ffffff;
  color: var(--wak-auth-primary);
  text-decoration: none;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.wak-auth-secondary:hover,
.wak-auth-secondary:focus-visible {
  border-color: rgba(15, 23, 42, 0.16);
  background: var(--wak-auth-panel-soft);
  color: var(--wak-auth-primary);
  transform: translateY(-1px);
}

.wak-auth-footnote {
  margin: 1.3rem 0 0;
  color: var(--wak-auth-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .wak-auth-hero {
    display: block;
  }

  .wak-auth-mobile-brand {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  .wak-auth-shell {
    display: block;
  }

  .wak-auth-content {
    min-height: 100vh;
  }
}

@media (max-width: 639.98px) {
  .wak-auth-content {
    padding: 1rem;
  }

  .wak-auth-panel {
    width: 100%;
    border-radius: 1.6rem;
    padding: 1.35rem;
  }

  .wak-auth-actions {
    grid-template-columns: 1fr;
  }

  .wak-auth-captcha {
    grid-template-columns: 1fr;
  }
}
