.tino-auth {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  touch-action: manipulation;
}

.tino-auth [hidden] { display: none !important; }

.tino-auth__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 1, 12, 0.82);
  backdrop-filter: blur(7px);
}

.tino-auth__card {
  position: relative;
  width: min(100%, 420px);
  max-width: 420px;
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(56, 245, 208, 0.48);
  border-radius: 18px;
  background: #18102c;
  box-shadow: 0 0 36px rgba(255, 62, 165, 0.2);
}

.tino-auth h2, .tino-auth h3 { margin: 0 0 10px; text-align: center; }
.tino-auth__intro { margin: 0 0 18px; color: #c9bdf5; font-size: 13px; text-align: center; }
.tino-auth__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.tino-auth button { min-height: 42px; border: 0; border-radius: 9px; font-weight: 650; cursor: pointer; }
.tino-auth__tabs button { background: rgba(255,255,255,.08); color: #cfc5f3; font-size: 12px; }
.tino-auth__tabs button.is-active { background: rgba(56,245,208,.16); color: #38f5d0; }
.tino-auth__form label { display: block; margin: 0 0 12px; color: #e8e1ff; font-size: 13px; }
.tino-auth input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  outline: 0;
  background: #090515;
  color: #fff;
  font-size: 16px;
}
.tino-auth input:focus { border-color: #38f5d0; }
.tino-auth__submit, .tino-auth__recovery button { width: 100%; background: #38f5d0; color: #090515; }
.tino-auth__error { min-height: 20px; margin: 2px 0 8px; color: #ff82ba; font-size: 13px; }
.tino-auth__recovery p { color: #c9bdf5; font-size: 13px; line-height: 1.5; }
.tino-auth__recovery output {
  display: block;
  margin: 16px 0 10px;
  padding: 14px 8px;
  border: 1px dashed #38f5d0;
  border-radius: 9px;
  color: #fff;
  font: 700 18px ui-monospace, monospace;
  text-align: center;
  letter-spacing: 1px;
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}
.tino-auth__recovery label { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 13px; }
.tino-auth__recovery [data-action="copy"] { background: rgba(255,255,255,.1); color: #fff; }
.tino-auth__account dl { margin: 18px 0; }
.tino-auth__account dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.tino-auth__account dt { color: #bfb2ec; font-size: 13px; }
.tino-auth__account dd { margin: 0; color: #fff; font-weight: 650; overflow-wrap: anywhere; }
.tino-auth__account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tino-auth__account-actions button { color: #fff; background: rgba(255,255,255,.1); }
.tino-auth__account-actions button.danger { color: #ff9dc7; border: 1px solid rgba(255,99,169,.38); }
.tino-auth__account-error { min-height: 20px; color: #ff82ba; font-size: 13px; text-align: center; }
.tino-auth button:disabled { opacity: .45; cursor: default; }

@media (max-width: 390px), (max-height: 680px) {
  .tino-auth { padding: 10px; align-items: start; }
  .tino-auth__card { max-height: calc(100vh - 20px); padding: 18px; border-radius: 14px; }
  .tino-auth__tabs { margin-bottom: 12px; }
  .tino-auth__form label { margin-bottom: 9px; }
}
