/* Partner auth — same canvas as the redesigned home */

.auth-stage {
  display: grid;
  background: var(--soft);
}

.auth-visual {
  display: none;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.auth-visual-media,
.auth-visual-media picture,
.auth-visual-media img {
  position: absolute;
  inset: 0;
}

.auth-visual-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.auth-visual-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(18, 8, 8, 0.82) 0%, rgba(18, 8, 8, 0.58) 48%, rgba(18, 8, 8, 0.86) 100%);
}

.auth-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 2.5rem;
}

.auth-visual h2 {
  margin: 0.7rem 0 0;
  max-width: 14ch;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.auth-visual .kicker {
  color: #ffd4d4;
}

.auth-visual p:not(.kicker) {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.55;
}

.auth-points {
  display: grid;
  gap: 0.7rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.auth-points b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
}

.auth-points span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.45;
}

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

.auth-card {
  width: min(28rem, 100%);
  padding: 1.5rem 1.2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(163, 38, 38, 0.06);
}

.auth-card-wide {
  width: min(34rem, 100%);
}

.auth-card .kicker {
  color: var(--brand);
}

.auth-card h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.auth-card .lead {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-fields {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.35rem;
}

.auth-row {
  display: grid;
  gap: 0.95rem;
}

.auth-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-input,
.auth-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.82rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  appearance: none;
}

.auth-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.auth-input::placeholder {
  color: #b0b0b0;
}

.auth-input:focus,
.auth-card select:focus {
  border-color: #e4b4b4;
  box-shadow: 0 0 0 4px rgba(163, 38, 38, 0.12);
}

.auth-secret {
  position: relative;
}

.auth-secret .auth-input {
  padding-right: 4.1rem;
}

.auth-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0.35rem 0.55rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-toggle:hover {
  color: var(--brand);
}

.auth-hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.auth-alert {
  margin: 1.1rem 0 0;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-alert-error {
  border: 1px solid #f0d0d0;
  background: #fff5f5;
  color: #8c1f1f;
}

.auth-alert-ok {
  border: 1px solid #cce8d4;
  background: #f3faf5;
  color: #1b5c32;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}

.auth-actions a,
.auth-switch a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.auth-actions a:hover,
.auth-switch a:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 1.25rem;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
}

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

.auth-otp {
  text-align: center;
  letter-spacing: 0.42em;
  font-size: 1.55rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .auth-card {
    padding: 2rem 1.85rem 1.85rem;
  }

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

@media (min-width: 960px) {
  .auth-stage {
    grid-template-columns: minmax(22rem, 1fr) minmax(26rem, 1fr);
    min-height: calc(100dvh - 64px);
  }

  .auth-visual {
    display: block;
    position: sticky;
    top: 64px;
    height: calc(100dvh - 64px);
  }

  .auth-panel {
    min-height: calc(100dvh - 64px);
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 759px) {
  .auth-card {
    border-radius: 18px;
    padding: 1.35rem 1.05rem 1.4rem;
  }

  .auth-card h1 {
    font-size: 1.7rem;
  }
}
