/* Atay — account screens (sign-up, login, password reset).
   Tokens in tokens.css, shared layout and buttons in flow.css. */

.au-form { flex: 1; display: flex; flex-direction: column; gap: 28px; }

.au-fields { display: flex; flex-direction: column; gap: 18px; }

.au-field { display: flex; flex-direction: column; gap: 7px; }

.au-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.au-label { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }

.au-input {
  appearance: none; -webkit-appearance: none; margin: 0; outline: none; border: 0;
  width: 100%; min-height: 54px; padding: 0 16px;
  background: var(--surface-sunken); border-radius: 14px; box-shadow: var(--shadow-inset);
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  transition: box-shadow .15s, background-color .15s;
}
.au-input::placeholder { color: var(--ink-3); opacity: .8; }
.au-input:focus { background: var(--surface-raised); box-shadow: var(--ring); }
.au-input[aria-invalid="true"] { background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--error); }
/* numeric field without browser spinners */
.au-input[type="number"] { -moz-appearance: textfield; }
.au-input[type="number"]::-webkit-inner-spin-button,
.au-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.au-age { max-width: 160px; }
.au-suffix { position: relative; }
.au-suffix .au-input { padding-right: 52px; }
.au-suffix span {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--ink-3); pointer-events: none;
}

.au-password { position: relative; }
.au-password .au-input { padding-right: 96px; }
.au-toggle {
  all: unset; position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 700; color: var(--green);
  transition: background-color .15s;
}
@media (hover: hover) { .au-toggle:hover { background: var(--green-tint); } }

.au-error { margin: 0; font-size: var(--fs-small); line-height: 1.4; color: var(--error); }
.au-error:empty { display: none; }

.au-hint {
  display: flex; align-items: center; gap: 7px; margin: 0;
  font-size: var(--fs-small); color: var(--ink-3); transition: color .2s;
}
.au-hint::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); transition: background-color .2s, border-color .2s;
}
.au-hint.is-ok { color: var(--green); }
.au-hint.is-ok::before {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' fill='none' stroke='%23FBF6EC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.au-inline-link {
  font-size: var(--fs-small); font-weight: 600; color: var(--green); text-decoration: none;
  padding: 2px 4px; margin: -2px -4px; border-radius: 6px;
}
.au-inline-link:hover { text-decoration: underline; }

.au-consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.au-consent input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 1px 0 0;
  width: 22px; height: 22px; border-radius: 7px; border: 0;
  background: var(--surface-sunken); box-shadow: var(--shadow-inset), inset 0 0 0 1.5px var(--line-strong);
  cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.au-consent input:active { transform: scale(.9); }
.au-consent input:checked {
  box-shadow: none;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' fill='none' stroke='%23FBF6EC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.au-consent input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }
.au-consent span { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.au-consent a { color: var(--green); font-weight: 600; }

.au-alert {
  margin: 0; padding: 14px 16px; border-radius: 14px;
  background: rgba(180, 83, 42, .08); box-shadow: inset 0 0 0 1px rgba(180, 83, 42, .25);
  font-size: 14px; line-height: 1.45; color: var(--error);
}

.au-switch { margin: 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.au-switch a { color: var(--green); font-weight: 700; text-decoration: none; padding: 4px; border-radius: 6px; }
.au-switch a:hover { text-decoration: underline; }

.au-plan { display: flex; flex-wrap: wrap; gap: 8px; }
.au-plan span {
  padding: 6px 12px; border-radius: 100px; background: var(--green-tint);
  font-size: 12px; font-weight: 700; color: var(--green);
}

.au-footer { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.ob-cta[aria-busy="true"] { opacity: .75; cursor: progress; }
.au-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(251, 246, 236, .35); border-top-color: var(--cream);
  animation: au-spin .8s linear infinite;
}
@keyframes au-spin { to { transform: rotate(360deg); } }

.au-sent { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; text-align: center; }
.au-sent-icon {
  display: flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--surface-raised); box-shadow: var(--shadow-2);
}
.au-sent .ob-sub { max-width: 320px; }
.au-sent .au-footer { width: 100%; margin-top: 12px; }

.au-toggle:focus-visible, .au-inline-link:focus-visible,
.au-switch a:focus-visible, .au-consent input:focus-visible, .au-consent a:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px;
}
