/* Giriş / kayıt modal — theme token’lar */
.aml-auth {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.aml-auth__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: color-mix(in srgb, var(--theme-bg) 62%, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.aml-auth__panel {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  max-height: min(92vh, 40rem);
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow);
  color: var(--theme-text);
}
.aml-auth__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  appearance: none;
  border: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--theme-text) 6%, transparent);
  color: var(--theme-text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.aml-auth__close:hover {
  background: color-mix(in srgb, var(--theme-text) 12%, transparent);
}
.aml-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 0.65rem;
  border-bottom: 1px solid var(--theme-border);
}
.aml-auth__tabs button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--theme-muted);
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.aml-auth__tabs button.is-active {
  background: color-mix(in srgb, var(--theme-accent) 16%, var(--theme-surface));
  color: var(--theme-accent-soft-ink);
  border-color: color-mix(in srgb, var(--theme-accent) 35%, transparent);
}
.aml-auth__body {
  padding: 1rem 1.15rem 1.25rem;
}
.aml-auth__error {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--theme-accent-soft-ink);
  background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface));
  border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, transparent);
}
.aml-auth__form {
  display: grid;
  gap: 0.75rem;
}
.aml-auth__field {
  display: grid;
  gap: 0.3rem;
}
.aml-auth__field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--theme-text);
}
.aml-auth__field input {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--theme-border);
  border-radius: 0.55rem;
  background: var(--theme-bg);
  color: var(--theme-text);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
}
.aml-auth__field input::placeholder {
  color: color-mix(in srgb, var(--theme-text) 42%, transparent);
}
.aml-auth__field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--theme-accent) 55%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent) 18%, transparent);
}
.aml-auth__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.aml-auth__row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}
.aml-auth__forgot {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--theme-accent-soft-ink);
  text-decoration: none;
}
.aml-auth__forgot:hover {
  text-decoration: underline;
}
.aml-auth__agree {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--theme-muted);
  cursor: pointer;
}
.aml-auth__agree input {
  margin-top: 0.15rem;
  accent-color: var(--theme-accent);
}
.aml-auth__agree span {
  color: var(--theme-text);
  line-height: 1.35;
}
.aml-auth__submit {
  appearance: none;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--theme-accent);
  color: var(--theme-accent-ink);
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.aml-auth__submit:hover:not(:disabled) {
  filter: brightness(1.06);
}
.aml-auth__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}
.aml-auth .aml-captcha {
  margin: 0;
}
@media (max-width: 420px) {
  .aml-auth__grid2 {
    grid-template-columns: 1fr;
  }
}
