@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg-1: #f8f0df;
  --bg-2: #f3ecdf;
  --bg-3: #e7efe8;
  --ink: #1f2a37;
  --ink-soft: #5d6776;
  --line: rgba(61, 52, 29, 0.12);
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #c69214;
  --accent-deep: #9c7420;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --shadow: 0 28px 56px rgba(77, 60, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-bg,
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-bg {
  z-index: -2;
  background:
    radial-gradient(circle at 14% 22%, rgba(198, 146, 20, 0.15), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(15, 118, 110, 0.12), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(198, 146, 20, 0.08), transparent 34%);
}

.page-glow {
  z-index: -1;
  background:
    linear-gradient(rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 40%, black 35%, transparent 80%);
}

.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
}

.auth-side {
  position: relative;
  padding: 40px 36px;
  background:
    radial-gradient(circle at 92% 15%, rgba(198, 146, 20, 0.22), transparent 28%),
    radial-gradient(circle at 8% 84%, rgba(15, 118, 110, 0.18), transparent 32%),
    linear-gradient(155deg, rgba(255, 250, 240, 0.98), rgba(242, 237, 222, 0.94));
  border-right: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 16px;
}

.auth-side::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(198, 146, 20, 0.12);
  pointer-events: none;
}

.brand-link {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-link img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(128, 98, 26, 0.18);
  background: #fff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(198, 146, 20, 0.12);
  border: 1px solid rgba(198, 146, 20, 0.18);
  color: #8f6a11;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-side h1 {
  margin: 4px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
  color: #223140;
}

.auth-side p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 46ch;
}

.auth-emblem {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(198, 146, 20, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(250, 243, 226, 0.78));
}

.emblem-frame {
  aspect-ratio: 1;
  border-radius: 24px;
  padding: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(198, 146, 20, 0.18), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px rgba(121, 94, 23, 0.14);
}

.emblem-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
}

.emblem-copy {
  display: grid;
  gap: 6px;
}

.emblem-copy strong {
  color: #6d531d;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  line-height: 1.05;
}

.emblem-copy span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.side-quote {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(198, 146, 20, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: #6f5724;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.12rem;
  line-height: 1.35;
}

.side-stats {
  margin-top: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.side-stats article {
  min-height: 110px;
  border-radius: 18px;
  border: 1px solid rgba(61, 52, 29, 0.1);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.82), rgba(251, 245, 231, 0.9));
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.side-stats strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: var(--accent-deep);
}

.side-stats span {
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.45;
}

.container {
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.82));
  padding: 38px 34px;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  border: 1px solid rgba(198, 146, 20, 0.08);
  pointer-events: none;
}

.form-header {
  margin-bottom: 20px;
}

.form-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.form-header p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.feature-chips {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-chips span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(198, 146, 20, 0.18);
  background: rgba(198, 146, 20, 0.08);
  color: #7b5d1b;
  font-size: 0.78rem;
  font-weight: 800;
}

.form-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(198, 146, 20, 0.16);
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.95), rgba(247, 241, 226, 0.92));
  display: grid;
  gap: 4px;
}

.form-banner strong {
  color: #6a501a;
  font-size: 0.95rem;
}

.form-banner span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(61, 52, 29, 0.12);
  background: rgba(255, 250, 240, 0.92);
  color: #5a4a22;
  font-weight: 700;
  line-height: 1.45;
}

.form-status.is-error {
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(254, 242, 242, 0.96);
  color: #991b1b;
}

.form-status.is-success {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(240, 253, 250, 0.96);
  color: #115e59;
}

form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 800;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  border: 1px solid rgba(61, 52, 29, 0.14);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 86px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(61, 52, 29, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #6f5724;
  border-radius: 10px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(198, 146, 20, 0.08);
}

.field-note {
  color: #7a8390;
  font-size: 0.8rem;
}

.password-strength {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(61, 52, 29, 0.08);
  margin-top: 6px;
}

.password-strength span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b91c1c, #c69214);
  transition: width 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder {
  color: #8b93a0;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(198, 146, 20, 0.45);
  box-shadow: 0 0 0 4px rgba(198, 146, 20, 0.12);
  transform: translateY(-1px);
}

.terms {
  margin-top: 4px;
}

.terms label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  min-height: 48px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(108, 83, 25, 0.22);
}

.btn-reset {
  background: linear-gradient(120deg, #5b6470, #7c8797);
}

.social-login {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(61, 52, 29, 0.1);
}

.social-login p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.social-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  border: 1px solid rgba(61, 52, 29, 0.12);
  border-radius: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.84);
  color: #6f5724;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
  background: rgba(198, 146, 20, 0.1);
  transform: translateY(-1px);
}

.links {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.links a {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 800;
}

.links a:hover {
  text-decoration: underline;
}

.links-note {
  margin: 12px 0 0;
  color: #7a8390;
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  body {
    padding: 20px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-side {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 30px 26px;
  }

  .container {
    padding: 28px 26px;
  }
}

@media (max-width: 760px) {
  body {
    padding: 14px;
    background: linear-gradient(145deg, #f8f0df, #f4ede0, #edf2ea);
  }

  .auth-shell {
    border-radius: 22px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 252, 246, 0.98);
  }

  .auth-side {
    padding: 22px 18px;
    gap: 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .auth-emblem {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .brand-link img {
    width: 48px;
    height: 48px;
  }

  .auth-side h1 {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .side-stats {
    grid-template-columns: 1fr;
  }

  .side-stats article {
    min-height: auto;
  }

  .container {
    padding: 20px 18px;
    background: rgba(255, 252, 246, 0.98);
  }

  .container::before {
    inset: 10px;
    border-radius: 18px;
  }

  .feature-chips {
    gap: 6px;
  }

  .feature-chips span {
    font-size: 0.74rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .btn,
  .social-btn {
    width: 100%;
  }

  .password-toggle {
    padding: 6px 9px;
  }
}

@media (max-width: 520px) {
  body {
    padding: 10px;
  }

  .page-glow {
    display: none;
  }

  .page-bg {
    opacity: 0.72;
  }

  .auth-shell {
    border-radius: 18px;
  }

  .auth-side,
  .container {
    padding: 16px 14px;
  }

  .auth-emblem {
    grid-template-columns: 1fr;
  }

  .emblem-frame {
    width: min(124px, 100%);
  }

  .eyebrow {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .form-header h2 {
    font-size: 1.75rem;
  }

  .links {
    gap: 10px;
    flex-direction: column;
  }

  .links-note {
    font-size: 0.82rem;
  }
}
