/* Form UI */
.card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25);
  animation: fadeSlideIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.button {
  appearance: none;
  border: 1px solid var(--border);
  background: #132342;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.06s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 124px;
  position: relative;
}

.button:hover { background: #162a4f; border-color: #2a3d62; }
.button:active { transform: translateY(1px); }

.button.primary {
  background: linear-gradient(90deg, #5b8cff 0%, #7aa4ff 50%, #5b8cff 100%);
  background-size: 220% 100%;
  border-color: var(--primary-700);
  color: white;
  box-shadow: 0 10px 28px rgba(91, 140, 255, 0.26);
}

.button.primary:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 28px rgba(91, 140, 255, 0.3), 0 0 0 4px rgba(91, 140, 255, 0.12);
}

.button.ghost { background: transparent; }

.btn-label { display: inline-flex; align-items: center; gap: 8px; }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: rgba(255,255,255,0.95);
  display: none;
}

.button.is-loading { gap: 0; }
.button.is-loading .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
.button.is-loading .btn-label { display: none; position: absolute; }
.field-group {
  display: grid;
  gap: 10px;
}

.label {
  font-weight: 600;
}

.input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
  color: #7b8aa0;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.15);
}

.input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.14);
}

.help-text {
  color: var(--muted);
  font-size: 13px;
}

.error-text {
  color: var(--danger);
  font-weight: 600;
  min-height: 18px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.actions.center {
  justify-content: center;
}

.note.year-note {
  margin-top: 6px;
  color: #a9bacb;
  font-size: 13px;
}

/* Center helper texts under input */
.help-text,
.note.year-note,
.error-text {
  text-align: center;
}


