.field { display: grid; gap: var(--space-2); }
.field__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}
.field__hint { font-size: var(--fs-xs); color: var(--ink-faint); }

.input,
.select,
.textarea {
  width: 100%;
  padding: .7rem .9rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.9; }

.input::placeholder,
.textarea::placeholder { color: var(--ink-faint); }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--line-strong); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 172, .16);
}

.select {
  appearance: none;
  padding-inline-start: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9E93' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: left .8rem center;
  cursor: pointer;
}

.input-search { position: relative; }
.input-search .input { padding-inline-start: 2.6rem; }
.input-search > svg {
  position: absolute;
  inset-inline-start: .85rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-faint);
  pointer-events: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  line-height: 1.9;
  cursor: pointer;
}
.check input {
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: .35em;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked {
  background: var(--brand-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: var(--brand-600);
}
.check input[type="radio"]:checked {
  background-image: none;
  box-shadow: inset 0 0 0 4px var(--paper);
}
.check input:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.switch input {
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease);
}
.switch input::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--dur-base) var(--ease);
}
.switch input:checked { background: var(--brand-500); }
.switch input:checked::after { transform: translateX(-20px); }
[dir="ltr"] .switch input:checked::after { transform: translateX(20px); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.form-grid .field--wide { grid-column: 1 / -1; }
.form-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

.auth {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-6);
  background:
    radial-gradient(760px 520px at 12% -8%, rgba(46, 224, 208, .30), transparent 58%),
    radial-gradient(720px 520px at 106% 110%, rgba(4, 32, 29, .5), transparent 55%),
    linear-gradient(150deg, #073f39 0%, #0b7a6e 52%, #15bcae 100%);
  background-attachment: fixed;
}

.auth__wrap {
  width: min(100%, 25rem);
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}
.auth__wrap--wide { width: min(100%, 64rem); }

.auth__logo {
  height: 76px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, .25));
}

.auth__card {
  width: 100%;
  padding: var(--space-7);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(4, 26, 24, .35);
}
@media (max-width: 480px) { .auth__card { padding: var(--space-6); } }
.auth__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: var(--space-6);
  transition: color var(--dur-base) var(--ease);
}
.auth__back:hover { color: var(--brand-600); }
.auth__back svg { width: 16px; height: 16px; }
.auth__title { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.auth__lede { color: var(--ink-muted); font-size: var(--fs-sm); margin-bottom: var(--space-6); }
.auth__form { display: grid; gap: var(--space-5); }
.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
}
.auth__row > *,
.auth__row .check span { white-space: nowrap; }
.auth__foot {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  text-align: center;
}
.auth__foot a { color: var(--brand-600); font-weight: 700; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  border: 1px solid;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .25em; }
.alert--error   { background: #FEF1F1; border-color: #F3C9C9; color: #8C2F2F; }
.alert--success { background: var(--brand-050); border-color: var(--brand-200); color: var(--brand-800); }
[data-theme="dark"] .alert--error { background: #2A1414; border-color: #5A2A2A; color: #F0B4B4; }

.steps {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}
.steps__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-faint);
}
.steps__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  transition: all var(--dur-base) var(--ease);
}
.steps__item.is-active { color: var(--brand-700); }
.steps__item.is-active .steps__num { border-color: var(--brand-500); background: var(--brand-500); color: #fff; }
.steps__item.is-done { color: var(--brand-600); }
.steps__item.is-done .steps__num { border-color: var(--brand-500); color: var(--brand-600); }
.steps__bar { flex: 1; height: 2px; background: var(--line); border-radius: var(--radius-pill); }

.step-panel[hidden] { display: none; }

.charter-box {
  max-height: 260px;
  overflow-y: auto;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-sm);
  line-height: 2.1;
}
.charter-box ol { display: grid; gap: var(--space-3); padding-inline-start: var(--space-5); list-style: decimal; }
