:root {
  --teal: #1ba39c;
  --teal-light: #27c9bf;
  --white: #ffffff;
  --off-white: #f8fbfb;
  --gold: #c9a227;
  --gold-light: #e0bc42;
  --dark-text: #1a1a1a;
  --muted: #6e7f80;
  --radius: 14px;

  --stroke: #e8eeee;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --focus: 0 0 0 4px rgba(27, 163, 156, 0.18);

  --danger-bg: #fff2f2;
  --danger-stroke: #ffd1d1;
  --danger-text: #b3261e;

  --ok-bg: #effaf7;
  --ok-stroke: #c6f0e5;
  --ok-text: #0f766e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--off-white);
  color: var(--dark-text);
}

.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: '';
  position: absolute;
  inset: -200px;
  background: radial-gradient(
      900px 500px at 20% 10%,
      rgba(27, 163, 156, 0.12),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 80% 20%,
      rgba(201, 162, 39, 0.14),
      transparent 60%
    );
  pointer-events: none;
}

.card {
  width: 100%;
  max-width: 540px;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  margin-bottom: 14px;
}

.brand__logo {
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  object-fit: cover;
}

.brand__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.1;
}

.brand__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.banner {
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 650;
  margin: 10px 0 14px;
  border: 1px solid transparent;
}

.banner--error {
  background: var(--danger-bg);
  border-color: var(--danger-stroke);
  color: var(--danger-text);
}

.banner--ok {
  background: var(--ok-bg);
  border-color: var(--ok-stroke);
  color: var(--ok-text);
}

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

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.field__label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--dark-text);
}

.field__hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #d9e2e2;
  background: #ffffff;

  color: var(--dark-text);
  caret-color: var(--dark-text);

  font-size: 14px;
  outline: none;
  transition: 0.18s ease;
}

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

.input:focus {
  border-color: var(--teal);
  box-shadow: var(--focus);
}

.reveal {
  position: absolute;
  right: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #d9e2e2;
  background: #ffffff;
  color: var(--teal);
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
}

.reveal:hover {
  border-color: var(--teal);
  background: rgba(27, 163, 156, 0.06);
}

.check {
  display: inline-flex;
  gap: 8px;
  align-items: flex-start;
  user-select: none;
  margin-top: 2px;
}

.check__box {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.check__label {
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.35;
}

.link {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

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

.btn {
  margin-top: 4px;
  width: 100%;
  border: none;
  border-radius: calc(var(--radius) + 2px);
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  color: white;
  position: relative;
  overflow: hidden;
  transition: 0.18s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    120px 80px at 20% 20%,
    rgba(255, 255, 255, 0.35),
    transparent 60%
  );
  pointer-events: none;
}

.btn.secondary {
  background: #ffffff;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn.secondary:hover {
  background: rgba(27, 163, 156, 0.06);
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.fineprint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  background: #e6eeee;
  flex: 1;
}

.foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e6eeee;
  display: flex;
  gap: 6px;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
