/* =====================================================
   LOGIN ERROR DIALOG — login-error-dialog.css
   Mirrors login-success-dialog.css structure.
   ===================================================== */

/* ── Dialog shell ── */
.login-error-dialog {
  width: 380px;
  max-width: 92vw;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(220, 38, 38, 0.2),
              0 0 0 1px rgba(220, 38, 38, 0.08) !important;
}

/* ── Content area ── */
md-dialog.login-error-dialog md-dialog-content.login-error-content {
  padding: 40px 32px 36px !important;
  background: linear-gradient(160deg, #ffffff 0%, #fff5f5 100%);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
}

/* ── Animated error circle ── */
.led-icon-wrapper {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.led-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: led-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.4);
}

/* Expanding ring pulse */
.led-icon-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(220, 38, 38, 0.35);
  animation: led-ring 1.2s ease-out 0.3s both;
  pointer-events: none;
}

.led-icon {
  color: white !important;
  font-size: 42px !important;
  width: 42px !important;
  height: 42px !important;
  animation: led-icon-in 0.35s ease-out 0.2s both;
}

/* ── Title ── */
.led-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #1a202c;
  letter-spacing: -0.4px;
  line-height: 1.2;
  animation: led-fade-up 0.4s ease-out 0.35s both;
}

/* ── Message ── */
.led-message {
  margin: 0 0 28px;
  font-size: 14px;
  color: #718096;
  line-height: 1.65;
  animation: led-fade-up 0.4s ease-out 0.45s both;
}

/* ── Close / Try Again button ── */
.led-btn-close {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  height: 44px !important;
  border-radius: 22px !important;
  padding: 0 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
  transition: all 0.2s ease !important;
  animation: led-fade-up 0.4s ease-out 0.55s both;
}
.led-btn-close:hover {
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5) !important;
  transform: translateY(-1px) !important;
}
.led-btn-close md-icon {
  font-size: 18px !important;
  width: 18px !important;
  height: 18px !important;
  color: white !important;
}

/* ════════════════════════
   Keyframes — mirror of success dialog
   ════════════════════════ */
@keyframes led-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes led-ring {
  from { transform: scale(0.8); opacity: 0.8; }
  to   { transform: scale(1.6); opacity: 0; }
}

@keyframes led-icon-in {
  from { transform: scale(0) rotate(20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}

@keyframes led-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}