.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

@media (min-width: 1024px) {
  .auth-page {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Brand panel ── */
.auth-panel {
  display: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #060d18 0%, #0a1628 35%, #071510 70%, #060d18 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-panel__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-panel__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.auth-panel__orb--1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -80px;
  background: rgba(22, 163, 74, 0.35);
}

.auth-panel__orb--2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  right: -60px;
  background: rgba(6, 95, 70, 0.45);
}

.auth-panel__orb--3 {
  width: 280px;
  height: 280px;
  top: 40%;
  right: 20%;
  background: rgba(59, 130, 246, 0.12);
}

@media (min-width: 1024px) {
  .auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
  }
}

.auth-panel__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  width: min(920px, 100%);
  min-height: calc(100vh - 96px);
}

@media (min-width: 1024px) {
  .auth-panel__layout {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.auth-panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.auth-panel__brand:hover {
  color: #fff;
  text-decoration: none;
}

.auth-panel__brand img,
.auth-panel__brand .brand-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(260px, 100%);
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  box-shadow: none;
}

.auth-panel__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: #fff;
}

.auth-panel__title em {
  font-style: normal;
  background: linear-gradient(135deg, #86efac 0%, #22c55e 50%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-panel__lead {
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 36ch;
}

.auth-panel__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-panel__features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-panel__features svg {
  width: 18px;
  height: 18px;
  color: #4ade80;
  flex-shrink: 0;
}

.auth-panel__art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-art {
  width: min(100%, 380px);
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .auth-art {
    animation: auth-art-float 6s ease-in-out infinite;
  }

  .auth-panel__orb--1 {
    animation: auth-orb-drift 12s ease-in-out infinite;
  }

  .auth-panel__orb--2 {
    animation: auth-orb-drift 14s ease-in-out infinite reverse;
  }
}

@keyframes auth-art-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes auth-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 15px); }
}


/* ── Form side ── */
.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-height: 100vh;
  background: #fff;
}

.auth-main__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  .auth-main__brand {
    display: none;
  }
}

.auth-main__brand img,
.auth-main__brand .brand-logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}

.auth-form-card {
  width: min(420px, 100%);
}

.auth-form-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.auth-form-card__lead {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.5;
  color: #64748b;
}

.auth-form-card .alert {
  margin-bottom: 20px;
  border-radius: 10px;
}

.auth-form-card .error-list {
  margin: 0 0 20px;
  padding: 12px 14px 12px 32px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  list-style: disc;
  font-size: 14px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.auth-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.auth-field__label-row label {
  margin-bottom: 0;
}

.auth-forgot {
  font-size: 13px;
  font-weight: 500;
  color: #16a34a;
  text-decoration: none;
  white-space: nowrap;
}

.auth-forgot:hover {
  color: #15803d;
}

.auth-field__wrap {
  position: relative;
}

.auth-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.15s;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input::placeholder {
  color: #94a3b8;
}

.auth-field input:hover {
  border-color: #cbd5e1;
}

.auth-field input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.auth-field__wrap:focus-within .auth-field__icon {
  color: #16a34a;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #0f172a;
  caret-color: #0f172a;
  border: 1px solid #e2e8f0;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #16a34a;
  cursor: pointer;
}

.auth-check label {
  cursor: pointer;
  user-select: none;
}

.auth-submit {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: #16a34a;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(22, 163, 74, 0.25);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.auth-submit:hover {
  background: #15803d;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 16px rgba(22, 163, 74, 0.3);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.auth-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: #0f172a;
}

.auth-google svg {
  flex-shrink: 0;
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.auth-footer a,
.auth-text-link {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.auth-footer a:hover,
.auth-text-link:hover {
  color: #15803d;
}

.auth-inline-form {
  display: inline;
  margin: 0;
}

.auth-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  text-align: center;
}

.auth-meta i {
  margin-right: 4px;
  color: #cbd5e1;
}
