:root {
  --auth-green: #16a34a;
  --auth-green-dark: #0f7a36;
  --auth-bg: radial-gradient(1100px 460px at 15% 10%, rgba(22, 163, 74, 0.18), rgba(255, 255, 255, 0)) , radial-gradient(900px 420px at 92% 18%, rgba(14, 165, 233, 0.14), rgba(255, 255, 255, 0)) , linear-gradient(180deg, #f7fafc, #eef2f7);
  --auth-card: rgba(255, 255, 255, 0.9);
  --auth-line: rgba(148, 163, 184, 0.28);
  --auth-text: #0f172a;
  --auth-muted: #64748b;
}

.auth-page {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--auth-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  color: var(--auth-text);
}

.auth-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  align-items: stretch;
  animation: authIn 280ms ease-out both;
}

@keyframes authIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-panel {
  border-radius: 16px;
  border: 1px solid var(--auth-line);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.12);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.auth-left {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  padding: 7px;
  background: rgba(22, 163, 74, 0.12);
}

.auth-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.auth-brand span {
  display: block;
  margin-top: 4px;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-hero h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.auth-hero p {
  margin: 10px 0 0;
  color: var(--auth-muted);
  font-weight: 600;
  font-size: 14px;
}

.auth-illustration {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  border: 1px solid rgba(22, 163, 74, 0.16);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.15), rgba(14, 165, 233, 0.08));
  display: grid;
  place-items: center;
}

.auth-illustration svg {
  width: min(340px, 92%);
  height: auto;
}

.auth-right {
  padding: 24px;
  background: var(--auth-card);
}

.auth-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-weight: 600;
  font-size: 14px;
}

.auth-alert {
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  font-weight: 700;
  font-size: 13px;
}

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

.auth-field label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, 0.82);
}

.auth-input {
  position: relative;
}

.auth-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(100, 116, 139, 0.9);
  font-size: 14px;
}

.auth-input input {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--auth-line);
  padding: 0 44px 0 38px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.auth-input input:focus {
  border-color: rgba(22, 163, 74, 0.75);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.auth-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
}

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

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 700;
  font-size: 13px;
}

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

.auth-link {
  color: var(--auth-green-dark);
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--auth-green), var(--auth-green-dark));
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
}

.auth-btn:hover {
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.26);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.auth-btn[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: rgba(255, 255, 255, 0.96);
  display: none;
  animation: spin 0.9s linear infinite;
}

.auth-btn.is-loading .auth-spinner {
  display: inline-block;
}

.auth-btn.is-loading .auth-btn-text {
  opacity: 0.9;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-footer {
  margin-top: 14px;
  color: var(--auth-muted);
  font-weight: 600;
  font-size: 13px;
}

.auth-footer a {
  color: var(--auth-green-dark);
  font-weight: 900;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-left {
    padding: 20px;
  }
  .auth-right {
    padding: 20px;
  }
}

