/* Signup page UI (production-friendly, responsive) */

:root {
  --brand: #e32929;
  --brand-dark: #c60f1a;
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3) {
  font-family: "Syne", sans-serif;
}

a {
  color: inherit;
}

/* Utilities */
.nowrap {
  white-space: normal; /* allow wrapping so words never get cut off */
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
}

/* Left panel */
.auth-left {
  position: relative;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  overflow: hidden;
}

.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.14) 0%, transparent 46%);
  opacity: 0.55;
  pointer-events: none;
}

.auth-left-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  max-width: 560px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.brand-text {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.auth-title {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 2.4vw + 1.1rem, 2.4rem);
  line-height: 1.05;
  letter-spacing: 0.2px;
  font-weight: 800;
}

.auth-subtitle {
  margin: 8px 0 10px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-benefits {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Right panel */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.auth-right-inner {
  width: min(520px, 100% - 44px);
  padding: 42px 0;
}

.form-header {
  margin-bottom: 18px;
}

.form-title {
  margin: 0;
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.form-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-link {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
}

.form-link:hover,
.form-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-size: 0.95rem;
}

.field input::placeholder {
  color: rgba(107, 114, 128, 0.8);
}

.field input:focus {
  border-color: rgba(227, 41, 41, 0.55);
  box-shadow: 0 0 0 4px rgba(227, 41, 41, 0.14);
}

.field-error {
  margin: 6px 0 0;
  min-height: 1.1em;
  font-size: 0.84rem;
  color: #b91c1c;
}

.terms {
  margin-top: 2px;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.checkbox input {
  margin-top: 3px;
  accent-color: var(--brand);
}

.submit {
  margin-top: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(198, 15, 26, 0.35);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(198, 15, 26, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.submit:hover,
.submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(198, 15, 26, 0.32);
}

.submit:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.divider {
  margin: 18px 0 12px;
  color: rgba(107, 114, 128, 0.95);
  font-size: 0.9rem;
  text-align: center;
  position: relative;
}

.divider span {
  display: inline-block;
  padding: 0 10px;
  background: #fff;
  position: relative;
  z-index: 1;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(17, 24, 39, 0.12);
  transform: translateY(-50%);
}

.oauth {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.oauth:hover,
.oauth:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(227, 41, 41, 0.28);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.oauth-icon {
  display: inline-flex;
  align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth-left-inner {
    max-width: none;
  }

  .auth-right-inner {
    padding: 28px 0 40px;
  }
}

@media (max-width: 520px) {
  .auth-left-inner {
    padding: 26px 22px;
  }

  .auth-right-inner {
    width: min(520px, 100% - 32px);
  }

  /* Let long hero words wrap on narrow phones */
  .auth-title .nowrap {
    white-space: normal;
  }
}

