.bg-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.18;
}

.shape-a {
  width: 260px;
  height: 260px;
  left: -70px;
  top: 42px;
  background: #bfdbfe;
}

.shape-b {
  width: 220px;
  height: 220px;
  right: 4%;
  top: 90px;
  background: #c7f9d9;
}

.shape-c {
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: 56px;
  background: #dbeafe;
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding:
    calc(18px + env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    calc(26px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: float-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.field {
  min-width: 0;
}

.check-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #35506f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.check-row input[type="checkbox"] {
  margin-top: 2px;
}

.check-row a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  min-height: var(--ios-control-height);
  line-height: 1.35;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #90a4c2 50%),
    linear-gradient(135deg, #90a4c2 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% + 1px),
    calc(100% - 11px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  height: 44px;
}

input:not([type="checkbox"]):not([type="radio"])::placeholder,
textarea::placeholder {
  color: #9aacbe;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  height: 44px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 110, 245, 0.15);
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.demo-accounts {
  margin-top: 13px;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}
