/* Estilos de las pantallas de autenticación (login, registro, recuperación
   de contraseña, confirmación). Reutiliza la paleta e identidad visual de
   SnapNet tal y como aparece en la home (nav, marca) y en el dashboard
   (color primario #1F2A23, radios de 8px, tipografía Poppins). */

.devise-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F4EE;
  font-family: "Poppins", system-ui, sans-serif;
  padding: 1rem;
}

.devise-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 0.5px solid #E6E0D2;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(31, 42, 35, 0.08);
  padding: 2rem 2rem 2.25rem;
}

/* Marca SnapNet, igual que en la home y el dashboard */
.devise-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.devise-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EAF0E7;
  border: 0.5px solid #C8D8C6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.devise-brand-icon svg,
.devise-brand-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.devise-brand-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.2px;
}

/* Icono contextual de cada pantalla */
.devise-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #EAF0E7;
  border: 0.5px solid #C8D8C6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.devise-icon svg {
  width: 19px;
  height: 19px;
  color: #1F2A23;
  stroke: #1F2A23;
}

/* Títulos */
.devise-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 0.25rem;
}

.devise-subtitle {
  font-size: 0.8125rem;
  color: #666;
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Campos */
.devise-field {
  margin-bottom: 1rem;
}

.devise-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
}

.devise-field input[type="email"],
.devise-field input[type="password"],
.devise-field input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0.5px solid #DDD8DA;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.devise-field input:focus {
  border-color: #1F2A23;
  box-shadow: 0 0 0 3px rgba(31, 42, 35, 0.12);
}

.devise-field input::placeholder {
  color: #aaa;
}

/* Hint longitud contraseña */
.devise-password-hint {
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 6px;
}

/* Remember me */
.devise-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.devise-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #1F2A23;
  cursor: pointer;
}

.devise-remember label {
  font-size: 0.8125rem;
  color: #666;
  cursor: pointer;
}

/* Botón principal */
.devise-submit {
  width: 100%;
  height: 42px;
  background-color: #1F2A23;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
}

.devise-submit:hover {
  background-color: #16201A;
}

/* Botones secundarios (cancelar cuenta, volver...) */
.devise-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  background: #ffffff;
  color: #444;
  border: 0.5px solid #E6E0D2;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.devise-btn-ghost:hover {
  background: #F7F4EE;
}

.devise-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  background: #ffffff;
  color: #A32D2D;
  border: 0.5px solid #F0C0C0;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.devise-btn-danger:hover {
  background: #FFF5F5;
}

/* Separador */
.devise-divider {
  border: none;
  border-top: 0.5px solid #E6E0D2;
  margin: 1.5rem 0;
}

/* Links inferiores */
.devise-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.devise-links p {
  margin: 0;
}

.devise-links a {
  font-size: 0.8125rem;
  color: #1F2A23;
  text-decoration: none;
}

.devise-links a:hover {
  text-decoration: underline;
}

/* Errores */
.devise-errors {
  background-color: #FFF5F5;
  border: 0.5px solid #F0C0C0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.devise-errors h2 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #A32D2D;
  margin-bottom: 4px;
  text-align: left;
}

.devise-errors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.devise-errors ul li {
  font-size: 0.8125rem;
  color: #A32D2D;
}

/* Alerta de flash (p.ej. credenciales incorrectas, cuenta suspendida) */
.devise-alert {
  background-color: #FFF5F5;
  border: 0.5px solid #F0C0C0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: #A32D2D;
  text-align: center;
}

/* Bloque de aviso informativo (p.ej. reconfirmación de email pendiente) */
.devise-notice {
  font-size: 0.8125rem;
  color: #666;
  background: #F7F4EE;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
}

.devise-section-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #444;
  margin: 0 0 0.75rem;
}
