/* Sign In / Register — Reiss-style */

.auth-page {
  background: #fff;
  padding: 1.25rem 0 3.5rem;
  min-height: 60vh;
}

.auth-page-inner {
  max-width: 920px;
  position: relative;
}

.auth-back {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  color: #111;
  text-decoration: none;
}

.auth-page-title {
  margin: 0 0 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-title-sm);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

.auth-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.auth-existing {
  background: #f3f2ef;
  padding: 1.75rem 1.5rem 1.6rem;
}

.auth-existing h2,
.auth-new h2 {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
}

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

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

.auth-field > label:first-child {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid #111;
  background: #fff;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: #111;
}

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrap input {
  padding-inline-end: 4.25rem;
}

.auth-show-pass {
  position: absolute;
  inset-inline-end: 0.55rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
  font-size: 0.88rem;
  color: #111;
  cursor: pointer;
  margin-top: 0.15rem;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #111;
}

.auth-forgot {
  justify-self: end;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  margin-top: 0.15rem;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 0;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.35rem;
}

.auth-btn:hover {
  background: #000;
}

.auth-new {
  text-align: center;
  padding-top: 0.35rem;
}

.auth-new-lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #111;
  line-height: 1.45;
}

.auth-new .auth-btn {
  max-width: 280px;
}

.auth-social {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
}

.auth-social-btn {
  width: 100%;
  min-height: 46px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
}

.auth-social-btn:hover {
  background: #fafafa;
}

.auth-social-google::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.7 2.4 30.2 0 24 0 14.6 0 6.5 5.4 2.6 13.3l7.9 6.1C12.4 13 17.8 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.5 2.9-2.2 5.4-4.7 7.1l7.6 5.9c4.4-4.1 7-10.1 7-17.5z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.6A14.5 14.5 0 0 1 9.7 24c0-1.6.3-3.1.8-4.6l-7.9-6.1A23.9 23.9 0 0 0 0 24c0 3.9.9 7.5 2.6 10.7l7.9-6.1z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.2 0 11.4-2 15.2-5.5l-7.6-5.9c-2.1 1.4-4.8 2.3-7.6 2.3-6.2 0-11.5-4.2-13.4-9.9l-7.9 6.1C6.5 42.6 14.6 48 24 48z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-social-facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.auth-social-facebook:hover {
  background: #166fe5;
}

.auth-social-facebook::before {
  content: 'f';
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
  color: #1877f2;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 18px;
  text-align: center;
  font-family: Georgia, serif;
}

.auth-social-note {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 0.35rem 0 0.15rem;
  color: #666;
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}

.auth-legal {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.45;
}

.auth-legal a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 800px) {
  .auth-split {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .auth-back {
    left: 0.25rem;
  }

  .auth-new .auth-btn {
    max-width: none;
  }
}
