/* ══════════════════════════════════════════════════════
   LOGIN PAGE — TALLER AUTOMOTRIZ
   ═══════════════════════════════════════════════════ */

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

body.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Patrón de fondo sutil */
body.login-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13,148,136,0.10) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Contenedor ─────────────────────────────────────── */
.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 25px 50px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

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

/* ── Header ─────────────────────────────────────────── */
.login-header {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #1d4ed8 100%);
  padding: 36px 32px 28px;
  text-align: center;
  position: relative;
}

.login-logo {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 3px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.login-logo i {
  font-size: 32px;
  color: #ffffff;
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 3px;
  font-weight: 500;
}

/* ── Error Banner ───────────────────────────────────── */
.login-error {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  color: #b91c1c;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-error i {
  font-size: 15px;
}

/* ── Formulario ─────────────────────────────────────── */
.login-form {
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label i {
  color: #2563eb;
  font-size: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── Input contraseña con toggle ────────────────────── */
.input-password-wrapper {
  position: relative;
}

.input-password-wrapper .form-input {
  padding-right: 48px;
}

.btn-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  transition: color 0.2s;
}

.btn-toggle-pass:hover { color: #2563eb; }

/* ── Botón Login ─────────────────────────────────────── */
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
  margin-top: 4px;
}

.btn-login:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 16px rgba(37,99,235,0.45);
  transform: translateY(-1px);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}

.btn-login:disabled {
  background: linear-gradient(135deg, #93c5fd, #6ea8f7);
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Footer ─────────────────────────────────────────── */
.login-footer {
  padding: 14px 32px 20px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid #f3f4f6;
}

.login-footer i {
  color: #10b981;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
  .login-container { padding: 16px; }
  .login-header { padding: 28px 24px 22px; }
  .login-form { padding: 24px 24px 20px; }
  .login-title { font-size: 18px; }
}
