/* Fallback CSS mínimo si los CDNs tardan */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f0f0;
  padding: 1rem;
}

.navbar {
  background: #eb5900;
  color: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.navbar-item, .navbar-brand { color: white; font-weight: 600; }

#app { max-width: 600px; margin: 0 auto; }

.login-card, .recovery-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-top: 2rem;
}

.login-logo { text-align: center; margin-bottom: 2rem; }

.logo-circle {
  width: 72px;
  height: 72px;
  background: #eb5900;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.login-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.login-logo p { color: #888; font-size: 0.9rem; margin: 0.2rem 0 0; }

.field { margin-bottom: 1.5rem; }
.label { display: block; font-weight: 600; color: #333; margin-bottom: 0.5rem; }
.input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}
.input:focus { outline: none; border-color: #eb5900; box-shadow: 0 0 0 3px rgba(235,89,0,0.2); }

.btn-primary {
  background: #eb5900;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.icon { display: inline-block; margin: 0 0.5rem; }

#login-error, #recovery-msg {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #333;
  color: white;
  border-radius: 20px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
