@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.slide-left-enter { animation: slideLeft 0.35s cubic-bezier(0.16,1,0.3,1) both; }

body {
  background: linear-gradient(135deg, #051f24 0%, #08363d 50%, #0d4a54 100%);
  min-height: 100vh;
  font-family: 'Work Sans', sans-serif;
  margin: 0;
}

/* Utilidad de visibilidad (antes venía del CDN de Tailwind) */
.hidden { display: none !important; }

/* Fondo con patrón sutil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(79,197,193,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(95,167,196,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

/* Brand */
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.login-brand img { height: 40px; }

.login-brand-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.login-brand-label .brand-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-brand-label .brand-sub {
  font-size: 0.68rem;
  color: #4fc5c1;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-dot.pending { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.15); }
.step-dot.active  { background: #4fc5c1; color: #fff; border: 2px solid #4fc5c1; }
.step-dot.done    { background: rgba(79,197,193,0.2); color: #4fc5c1; border: 2px solid rgba(79,197,193,0.4); }

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  transition: background 0.4s ease;
}
.step-line.filled { background: rgba(79,197,193,0.4); }

/* Box blanco del formulario */
.login-box {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.12);
}

.login-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
}

.login-desc {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

/* Formulario */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.925rem;
  font-family: 'Work Sans', sans-serif;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #4fc5c1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,197,193,0.12);
}

.form-input.code-input {
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.2rem;
  font-weight: 600;
}

.btn-login {
  width: 100%;
  padding: 0.85rem;
  border-radius: 10px;
  border: none;
  background: #08363d;
  color: #fff;
  font-size: 0.925rem;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 0.5rem;
}

.btn-login:hover  { background: #0d4a54; }
.btn-login:active { transform: scale(0.99); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-bottom: 1rem;
  transition: color 0.15s ease;
}
.back-link:hover { color: #08363d; }

/* Status messages */
.status {
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.845rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.status.hidden { display: none; }
.status.success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.status.error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
}
