:root {
  --bg: #f4f7f6;
  --panel: #ffffff;
  --panel-alt: linear-gradient(145deg, #0f766e, #16a085);
  --primary: #16a085;
  --primary-dark: #12876f;
  --primary-soft: #e7f4f1;
  --text: #17202a;
  --muted: #6b7280;
  --border: #dfe7e5;
  --danger: #dc2626;
  --success: #15803d;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top left, #eef8f5 0%, #f4f7f6 42%, #f7fbfa 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

button,
input,
a {
  font: inherit;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 540px);
}

.auth-shell-signup {
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 640px);
}

.auth-brand-panel {
  background: var(--panel-alt);
  color: white;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  backdrop-filter: blur(6px);
}

.eyebrow {
  margin: 0 0 8px;
  opacity: 0.9;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-brand-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}

.brand-copy {
  margin: 0;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.brand-highlights {
  display: grid;
  gap: 14px;
}

.highlight-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.highlight-card i {
  margin-top: 2px;
  font-size: 1.05rem;
}

.highlight-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.highlight-card p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.55;
  font-size: 0.94rem;
}

.auth-card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 44px);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 36px);
}

.auth-card-wide {
  max-width: 560px;
}

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

.auth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-card-head h2 {
  margin: 14px 0 8px;
  font-size: 1.8rem;
  line-height: 1.15;
}

.auth-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.auth-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.12);
}

.input-wrap i {
  color: var(--primary);
  font-size: 0.98rem;
}

.input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  min-width: 0;
  background: transparent;
  color: var(--text);
}

.btn {
  min-height: 52px;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.auth-footer {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-footer p {
  margin: 0;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.form-message {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.form-message.error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.form-message.success {
  background: #f0fdf4;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .auth-shell,
  .auth-shell-signup {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .auth-card {
    border-radius: 22px;
    padding: 22px 18px;
  }

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

  .field-span-2 {
    grid-column: auto;
  }
}
