/* =========================================================
   MODAL — iframe de pantalla completa que se fade in/out
   ========================================================= */
.modal-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.modal-frame.is-open {
  opacity: 1;
  pointer-events: all;
}

/* =========================================================
   TOAST — acceso denegado (inyectado en el DOM sobre la card)
   ========================================================= */
.toast-error {
  width: 100%;
  max-width: 520px;
  background: #414040;
  border-left: 5px solid #FF7E41;
  border-radius: 6px;
  padding: 14px 44px 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  position: relative;
  margin-bottom: 10px;
  animation: toastIn 200ms ease forwards;
}
.toast-error--out {
  animation: toastOut 200ms ease forwards !important;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0);     }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0);     }
  to   { opacity: 0; transform: translateY(-10px); }
}
.toast-error__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: #FFAA80;
  border: 2px solid #FF7E41;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.toast-error__body { flex: 1; min-width: 0; }
.toast-error__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
}
.toast-error__sub {
  font-style: normal;  /* quita cursiva */
  color: rgba(255,255,255,1);  /* texto más visible */
}
.toast-error__x {
  position: absolute;
  top: 9px; right: 10px;
  background: none; border: none;
  color: rgba(255,255,255,0.50);
  font-size: 16px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: inherit;
  line-height: 1;
  transition: color 150ms, background 150ms;
}
.toast-error__x:hover { color: #fff; background: rgba(255,255,255,0.10); }

/* Campo con error → línea roja */
.field__input.is-error {
  border-bottom-color: #E82828;
}
/* Quitar el rojo al empezar a escribir */
.field__input.is-error:focus {
  border-bottom-color: #E82828;
}

/* =========================================================
   BOTÓN LOGIN — estado habilitado
   ========================================================= */
.btn-login.is-active {
  background: #fdda24;
  color: #000000;
  cursor: pointer;
  transition: background 200ms;
}
.btn-login.is-active:hover {
  background: #fdda24;
}

/* =========================================================
   PANEL DE TESTING
   ========================================================= */
.test-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 500;
}
.test-btn {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Nunito Sans', sans-serif;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.92);
  color: #333;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 150ms, box-shadow 150ms;
  text-align: left;
}
.test-btn:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.16);
}
