:root {
  --bg: #f6f6f3;
  --panel: #ffffff;
  --panel-border: #e4e4de;
  --text: #141414;
  --muted: #5f5f5a;
  --accent: #ff4500;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

main {
  width: min(100%, 520px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 32px 28px;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 12px 0 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.12);
}

button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: background-color 160ms ease;
}

button:disabled {
  cursor: default;
}

button:hover {
  background: #e33d00;
}

button:active {
  background: #cc3700;
}

.button-label-loading {
  opacity: 0;
}

.button-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 160ms ease;
}

.button-spinner-visible {
  opacity: 1;
}

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

.support-card {
  padding: 18px 20px;
  border-color: rgba(255, 69, 0, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 69, 0, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 245, 0.9), rgba(255, 255, 255, 0.94)),
    var(--panel);
  box-shadow: 0 8px 18px rgba(255, 69, 0, 0.04);
}

.support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.support-copy-block {
  min-width: 0;
}

.support-copy {
  margin: 0;
  color: #6a5646;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d7c8b8;
  border-radius: 999px;
  color: #6b4a35;
  text-decoration: none;
  font-weight: 700;
  background: #fcfaf7;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  white-space: nowrap;
  box-shadow: none;
}

.support-link:hover {
  background: #f6f0e8;
  border-color: #cbb6a1;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(111, 78, 55, 0.08);
}

.support-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.support-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f1e5d8;
  font-size: 0.9rem;
  line-height: 1;
}

@media (max-width: 560px) {
  body {
    padding: 18px;
  }

  .card {
    padding: 24px 20px;
  }

  .support-row {
    flex-direction: column;
    align-items: stretch;
  }

  .support-link {
    width: 100%;
  }
}
