*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(145deg, #f5f6f8 0%, #e8ebf0 100%);
  color: #111827;
}

.auth-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px;
}

.auth-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.auth-home {
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
}

.auth-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-tab {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
  background: #e2e8f0;
  color: #334155;
}

.auth-tab.is-active {
  background: #111827;
  color: #fff;
}

.auth-form {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form.is-active {
  display: grid;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field.auth-full {
  grid-column: 1 / -1;
}

.auth-developer-field {
  display: none;
}

.auth-developer-field.is-visible {
  display: flex;
}

.auth-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #64748b;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  color: #111827;
}

.auth-submit {
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
  background: #111827;
  color: #fff;
}

.auth-status {
  margin-top: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  min-height: 40px;
}

.auth-status[data-kind="error"] {
  background: #fef2f2;
  color: #991b1b;
}

.auth-status[data-kind="success"] {
  background: #ecfdf3;
  color: #166534;
}

@media (max-width: 760px) {
  .auth-form,
  .auth-form.is-active {
    grid-template-columns: 1fr;
  }
}
