/* ============================================================
   REDISEÑO Sinkroniza — Pantallas de autenticación
   (login, registro, recuperación de contraseña y recuperación
   de emergencia). Todo bajo .auth-screen/.auth-box, no toca
   nada del resto de la app.

   Vivía inline en layouts/devise.html.erb; se extrajo aquí para
   poder reutilizar el mismo aspecto en modales que se pintan
   sobre el layout de la aplicación (ver .auth-modal al final).
   ============================================================ */
.auth-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #0FEAE3, #0400DC);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-box {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(2, 10, 90, .22);
  padding: 36px 32px;
  box-sizing: border-box;
}
.auth-box .auth-logo {
  color: #1e5e46;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.auth-box h1,
.auth-box h2,
.auth-box h6 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  color: #000223;
}
.auth-box .auth-subtitle {
  color: #5a6b78;
  margin-bottom: 24px;
  text-align: center;
  font-size: 13px;
}
.auth-box .field {
  margin-bottom: 14px;
}
.auth-box .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #000223;
}
.auth-box .form-control {
  height: 44px;
  border-radius: 9px !important;
  border: 1px solid #c9d6dd !important;
  padding: 0 14px;
  background: #fff !important;
  width: 100%;
}
.auth-box .form-control:focus {
  outline: none;
  border-color: #43bf92 !important;
  box-shadow: 0 0 0 3px rgba(67, 191, 146, .18);
}
.auth-box .btn,
.auth-box button[type="submit"],
.auth-box input[type="submit"] {
  border-radius: 9px !important;
  font-weight: 600;
}
.auth-box .actions .btn,
.auth-box .actions button[type="submit"],
.auth-box .actions input[type="submit"],
.auth-box .btn-sinkroniza,
.auth-box button[type="submit"],
.auth-box input[type="submit"] {
  width: 100% !important;
  justify-content: center;
  height: 46px !important;
  font-size: 15px;
  background: linear-gradient(100deg, #1f9a70, #178a5f) !important;
  border-color: #178a5f !important;
  color: #fff !important;
}
.auth-box a {
  color: #43bf92;
}
.auth-box a:hover {
  color: #2f9973;
}
.auth-box .back-link {
  font-weight: 600;
}
.auth-box .alert {
  border-radius: 10px;
  font-size: 13.5px;
}
.auth-box #error_explanation {
  background: #fdecea;
  border: 1px solid #f6d4d1;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #b3261e;
  font-size: 13.5px;
}
.auth-box #error_explanation h2 {
  font-size: 14px;
  text-align: left;
  color: #b3261e;
  margin-bottom: 6px;
}
.auth-box #error_explanation ul {
  margin: 0;
  padding-left: 18px;
}

/* ------------------------------------------------------------
   Modales con aspecto de pantalla de autenticación.

   .modal ya es position: fixed a pantalla completa, así que el
   degradado va sobre el propio modal y tapa el backdrop oscuro
   de Bootstrap, que queda por debajo. La tarjeta blanca la pone
   .auth-box sobre .modal-content, de ahí que aquí solo haya que
   neutralizar el fondo y el borde que Bootstrap le da.
   ------------------------------------------------------------ */
.modal.auth-modal {
  background: linear-gradient(135deg, #0FEAE3, #0400DC);
}
.auth-modal .modal-dialog {
  max-width: 400px;
}
.auth-modal .modal-content {
  border: 0;
  box-shadow: 0 12px 40px rgba(2, 10, 90, .22);
}
.auth-modal .modal-body {
  padding: 0;
}
