.auth-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(204, 251, 241, 0.9), transparent 28%),
    linear-gradient(135deg, #edf7f6 0%, #f7fafc 46%, #eef4ff 100%);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 100vh;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 64px);
}

.auth-brand .brand span {
  color: var(--muted);
}

.auth-copy {
  max-width: 680px;
}

.auth-copy h1 {
  margin-bottom: 20px;
}

.auth-copy p:not(.eyebrow),
.auth-card-heading p,
.auth-note p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-preview,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.auth-preview {
  width: min(560px, 100%);
  padding: 20px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.preview-header span {
  color: var(--muted);
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-grid div {
  padding: 16px;
  border-radius: 8px;
  background: #f8fbfd;
}

.preview-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.auth-panel {
  display: grid;
  align-items: center;
  padding: 28px;
}

.auth-card {
  width: min(480px, 100%);
  margin-left: auto;
  padding: 34px;
}

.auth-card-heading {
  margin-bottom: 24px;
}

.auth-card-heading h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.password-toggle {
  justify-self: end;
  margin-top: -10px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.form-options a {
  color: var(--teal-dark);
  text-decoration: none;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.remember-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.auth-note {
  margin-top: 22px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.auth-note strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 1180px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
  }

  .auth-card {
    margin: 0;
  }
}

@media (max-width: 820px) {
  .auth-panel {
    padding: 18px;
  }
}

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

  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }
}
