* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 166, 90, 0.18), transparent 32%),
    linear-gradient(135deg, #2d1814, #7c1820);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
}

.container {
  width: 100%;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
  color: #111827;
}

.subtitle {
  margin: 0 0 24px;
  color: #6b7280;
  line-height: 1.45;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: rgba(124, 24, 32, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 24, 32, 0.10);
}

button,
.link-button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #7c1820, #92212b);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

button:hover,
.link-button:hover {
  background: #5f1118;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.secondary {
  background: #e5e7eb;
  color: #374151;
  margin-top: 10px;
}

.secondary:hover {
  background: #d1d5db;
}

.link-action {
  background: transparent;
  color: #7c1820;
  padding: 12px 8px;
  margin-top: 8px;
}

.link-action:hover {
  background: #fbf8f3;
}

.hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.35;
}

.hint.error {
  color: #dc2626;
}

.hint.success {
  color: #16a34a;
}

.hidden {
  display: none;
}

.summary-box {
  border: 1px solid #bfdbfe;
  background: #fbf8f3;
  color: #1e3a8a;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.summary-box span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.summary-box strong {
  display: block;
  word-break: break-word;
}

.new-account {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.warning-box {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.success-box {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.message-card .actions {
  margin-top: 18px;
}

@media (max-width: 480px) {
  .card {
    padding: 24px;
  }

  h1 {
    font-size: 26px;
  }
}
