/* RETOO Auth UI — exclusivamente entorno de demostración privado. */
/* Evita que los estilos de formularios sobreescriban el atributo hidden. */
.ra-panel [hidden] { display:none!important; }
.ra-backdrop {
  position: fixed; inset: 0; z-index: 40; display: flex;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(5,24,13,.8); overflow-y: auto;
}
.ra-backdrop[hidden] { display:none!important; }
.ra-panel {
  width: min(445px,100%); max-height: min(88vh,840px); overflow-y: auto;
  background:#fff; border-radius:23px; padding: 26px 24px 24px;
  box-shadow: 0 30px 110px #0005; position:relative; color:#163021;
}
.ra-close {
  position:absolute; top:17px; right:17px; border:0;
  border-radius:50%; background:#edf3e9; color:#214129;
  font-size:23px; width:36px; height:36px; cursor:pointer;
}
.ra-logo { color:#276039; font-weight:900; letter-spacing:-.8px; font-size:19px; }
.ra-kicker {
  font-size:10px; letter-spacing:.7px; text-transform:uppercase;
  color:#3e6d3a; background:#e8f6db; padding:5px 9px; border-radius:20px; display:inline-block;
  margin-top:10px; font-weight:800;
}
.ra-panel h2 { margin:12px 0 5px; font-size:26px; letter-spacing:-.7px; }
.ra-info { color:#697a6b; font-size:13px; line-height:1.55; margin:6px 0 15px; }
.ra-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; background:#f0f5eb; padding:5px; border-radius:13px; margin:18px 0; }
.ra-tabs button { border:0; padding:11px 7px; background:transparent; font-size:13px; font-weight:750; border-radius:10px; color:#5b6d5b; }
.ra-tabs button[aria-selected="true"] { background:#173829; color:white; }
.ra-panel label.ra-field { display:block; font-size:12px; font-weight:750; margin:12px 0; }
.ra-panel label.ra-field span { display:block; margin-bottom:6px; }
.ra-panel label.ra-field input {
  width:100%; border:1px solid #d7e2d6; border-radius:11px; padding:12px 13px;
  background:white; font-size:14px; color:#1b3325; outline-offset:3px;
}
.ra-panel label.ra-field input:focus { border-color:#4b8e3a; outline:2px solid #d0efb7; }
.ra-primary {
  width:100%; background:#102f1d; color:white; font-weight:850;
  border:0; border-radius:12px; padding:13px; margin-top:10px;
}
.ra-primary:disabled { opacity:.55; cursor:wait; }
.ra-secondary {
  border:1px solid #d0ded0; background:white; padding:10px 12px;
  border-radius:10px; font-size:13px; font-weight:750; color:#24462f;
}
.ra-msg { border-radius:10px; padding:12px; background:#fff4ee; color:#823817; font-size:12px; margin:12px 0; }
.ra-msg[data-ok="true"] { background:#eaf6e5; color:#32692b; }
.ra-user { background:#f1f8e8; padding:16px; border-radius:15px; margin:17px 0; font-size:14px; }
.ra-user strong { display:block; font-size:19px; }
.ra-user small { display:block; color:#53654f; margin-top:5px; overflow-wrap:anywhere; }
.ra-tools { display:flex; gap:10px; flex-wrap:wrap; }
.ra-tools button { flex:1; }
.ra-tools a.ra-secondary { text-decoration:none; text-align:center; flex:1 1 100%; display:block; }
.ra-tools a.ra-secondary[hidden] { display:none!important; }
.ra-muted { color:#657869; font-size:11px; margin-top:18px; line-height:1.5; }
.ra-panel a { color:#295d37; }
body.ra-locked { overflow:hidden; }
@media(max-width:540px) {
  .ra-backdrop { align-items: flex-end; padding:0; }
  .ra-panel { width:100%; max-height:93dvh; border-radius:23px 23px 0 0; padding:23px 18px calc(25px + env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce) {.ra-backdrop * { transition:none!important; }}

/* Los formularios y controles protegidos no deben mostrarse si llevan hidden. */
.ra-backdrop [hidden] { display:none!important; }
