:root {
  color-scheme: light;
  --bg-top: #bcc5ca;
  --bg-bottom: #d9d9ce;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.84);
  --line: rgba(255, 255, 255, 0.84);
  --panel-border: rgba(255, 255, 255, 0.26);
  --panel-fill: rgba(176, 182, 182, 0.26);
  --panel-shadow: 0 24px 54px rgba(72, 72, 62, 0.16);
  --field-bg: rgba(255, 255, 255, 0.04);
  --field-border: rgba(255, 255, 255, 0.92);
  --link: rgba(255, 255, 255, 0.96);
  --cta-start: #e1be7b;
  --cta-end: #f2c88b;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Outfit", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 26%, rgba(120, 115, 100, 0.22), transparent 14%),
    radial-gradient(circle at 18% 84%, rgba(240, 210, 160, 0.34), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 26%),
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.12), transparent 24%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.auth-page {
  padding: 28px 34px 42px;
}

.glass-nav {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.95rem 3rem;
  border-radius: 1.8rem;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 34px rgba(88, 93, 92, 0.1);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.brand {
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 1.5rem;
}

.nav-links-group {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.5vw, 3.2rem);
  flex-wrap: wrap;
}

.nav-links-group a,
.nav-auth {
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1vw, 1.18rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.nav-auth {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-links-group a:hover,
.nav-auth:hover,
.nav-auth[aria-current="page"] {
  opacity: 0.74;
}

.auth-shell {
  width: min(100%, 1240px);
  margin: clamp(2.8rem, 8vh, 6rem) auto 0;
}

.auth-stage {
  min-height: clamp(620px, 70vh, 800px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.84fr);
  border: 1px solid var(--panel-border);
  border-radius: 1.7rem;
  background:
    linear-gradient(125deg, rgba(176, 182, 182, 0.3), rgba(130, 130, 122, 0.14) 45%, rgba(216, 221, 220, 0.18) 100%),
    radial-gradient(circle at 50% 34%, rgba(90, 84, 72, 0.26), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  position: relative;
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 70%, rgba(242, 208, 151, 0.24), transparent 20%),
    radial-gradient(circle at 60% 50%, rgba(76, 74, 64, 0.18), transparent 18%);
  pointer-events: none;
}

.auth-form-panel,
.auth-figure {
  position: relative;
  z-index: 1;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 4vw, 4.25rem);
}

.auth-form-stack {
  width: min(100%, 400px);
}

.auth-title {
  margin: 0;
  font-size: clamp(2.8rem, 3vw, 3.9rem);
  font-weight: 600;
  line-height: 1;
}

.auth-subtitle {
  margin: 0.55rem 0 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.22rem);
}

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

.auth-field,
.password-field {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border: 1px solid var(--field-border);
  border-radius: 0.95rem;
  background: var(--field-bg);
}

.auth-field input,
.password-field input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0.95rem 1rem;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.auth-field input::placeholder,
.password-field input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.password-toggle {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin-right: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.04)
    center / 15px 15px
    no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6 10-6 10 6 10 6-3.6 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E");
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.checkbox-row input {
  width: 1rem;
  height: 1rem;
  accent-color: #be8eff;
}

.forgot-link {
  color: var(--link);
}

.auth-submit {
  margin-top: 0.35rem;
  min-height: 3.55rem;
  border: 0;
  border-radius: 0.95rem;
  background: linear-gradient(90deg, var(--cta-start), var(--cta-end));
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.auth-divider {
  margin: 0.45rem 0 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.95rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.86);
}

.auth-switch {
  margin: 2.3rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
}

.auth-switch a,
.auth-links a {
  color: var(--link);
}

.auth-links {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.auth-figure {
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 1.8rem 1.5rem 0;
}

.auth-figure::before {
  content: "";
  position: absolute;
  inset: 12% 8% 10% 8%;
  background:
    radial-gradient(circle at 52% 22%, rgba(88, 86, 76, 0.24), transparent 18%),
    radial-gradient(circle at 46% 84%, rgba(255, 220, 179, 0.18), transparent 22%);
  filter: blur(18px);
  pointer-events: none;
}

.auth-statue {
  width: min(100%, 470px);
  max-height: 100%;
  object-fit: contain;
  align-self: end;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 24px rgba(74, 66, 52, 0.12));
}

.login-page {
  --cta-start: #ffbb8b;
  --cta-end: #ffc498;
}

.signup-page {
  --cta-start: #e1c07b;
  --cta-end: #f1c88d;
}

@media (max-width: 1100px) {
  .auth-page {
    padding-inline: 20px;
  }

  .glass-nav {
    padding-inline: 1.5rem;
  }

  .auth-stage {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  }
}

@media (max-width: 860px) {
  .glass-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-block: 1rem;
  }

  .brand,
  .nav-auth {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links-group {
    justify-content: center;
    gap: 1rem 1.6rem;
  }

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

  .auth-form-panel {
    order: 2;
    padding-top: 1.25rem;
  }

  .auth-form-stack {
    width: 100%;
    max-width: none;
  }

  .auth-figure {
    order: 1;
    min-height: 360px;
    padding-top: 2rem;
  }

  .auth-statue {
    width: min(100%, 360px);
  }
}

@media (max-width: 560px) {
  .auth-page {
    padding: 18px 14px 22px;
  }

  .glass-nav {
    display: none;
  }

  .auth-shell {
    width: 100%;
    margin-top: 0;
  }

  .auth-stage {
    min-height: calc(100dvh - 40px);
    grid-template-columns: 1fr;
    border-radius: 1.55rem;
  }

  .auth-stage::before {
    background:
      radial-gradient(circle at 14% 74%, rgba(240, 205, 148, 0.22), transparent 22%),
      radial-gradient(circle at 56% 46%, rgba(86, 82, 69, 0.22), transparent 18%);
  }

  .auth-form-panel {
    order: 1;
    align-items: stretch;
    padding: 1.85rem 1.35rem 1.3rem;
  }

  .auth-form-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 100%;
  }

  .auth-title {
    font-size: 2.35rem;
  }

  .auth-subtitle {
    margin: 0.45rem 0 0.95rem;
    font-size: 0.92rem;
  }

  .auth-form {
    gap: 1.1rem;
  }

  .auth-field,
  .password-field {
    min-height: 3.45rem;
    border-radius: 0.95rem;
  }

  .auth-field input,
  .password-field input {
    padding: 0.92rem 1rem;
    font-size: 0.96rem;
  }

  .password-toggle {
    width: 1.85rem;
    height: 1.85rem;
    margin-right: 0.7rem;
    background-size: 14px 14px;
  }

  .auth-meta {
    justify-content: flex-start;
    gap: 0.8rem;
    font-size: 0.92rem;
  }

  .auth-submit {
    min-height: 3.45rem;
    margin-top: 0.35rem;
    font-size: 1rem;
  }

  .auth-switch {
    font-size: 0.92rem;
  }

  .auth-divider {
    margin-top: 1.45rem;
    gap: 0.85rem;
  }

  .auth-divider + .auth-switch {
    margin-top: auto;
    padding-top: 3.2rem;
  }

  .auth-links {
    margin-top: 0.9rem;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.82rem;
  }

  .auth-figure {
    display: none;
  }
}

@media (max-width: 380px) {
  .auth-page {
    padding: 14px 10px 18px;
  }

  .auth-stage {
    min-height: calc(100dvh - 28px);
    border-radius: 1.35rem;
  }

  .auth-form-panel {
    padding: 1.45rem 1.05rem 1.1rem;
  }

  .auth-title {
    font-size: 2.1rem;
  }

  .auth-links {
    font-size: 0.76rem;
  }
}
