/* =====================================================
   REGISTER ERROR DIALOG — register-error-dialog.css
   Prefix: red-   (register-error-dialog)
   ===================================================== */

@keyframes red-fade-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes red-ring-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  60%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(1.55); opacity: 0;   }
}

@keyframes red-circle-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

@keyframes red-icon-pop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0);      opacity: 1; }
}

/* ── AM container: allow circle breathing room ── */
.md-dialog-container {
  overflow: visible !important;
}

/* ── Dialog shell ── */
.red-dialog {
  width: 440px !important;
  max-width: 94vw !important;
  border-radius: 20px !important;
  overflow: visible !important;
  box-shadow: 0 24px 64px rgba(220, 38, 38, 0.18), 0 8px 24px rgba(0,0,0,0.14) !important;
}

/* ── Content: clip background but allow icon to bleed above ── */
.red-content {
  padding: 0 36px 32px !important;
  background: linear-gradient(160deg, #fff8f8 0%, #ffffff 60%);
  border-radius: 20px !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  animation: red-fade-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Animated icon: floats above card ── */
.red-icon-wrapper {
  margin-top: -46px;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.red-icon-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.45);
  /* White ring border to visually separate from whatever is behind */
  outline: 5px solid white;
  animation: red-circle-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.red-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(220, 38, 38, 0.5);
  animation: red-ring-pulse 1.6s ease-out 0.5s infinite;
}

.red-icon {
  color: white !important;
  font-size: 42px !important;
  width: 42px !important;
  height: 42px !important;
  animation: red-icon-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* ── Title ── */
.red-title {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #1a202c;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

/* ── Message ── */
.red-message {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  max-width: 340px;
  padding: 14px 16px;
  background: rgba(239, 68, 68, 0.06);
  border: 1.5px solid rgba(220, 38, 38, 0.15);
  border-radius: 12px;
  color: #b91c1c;
}

/* ── Retry button ── */
.red-btn-retry {
  width: 100% !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  border-radius: 10px !important;
  min-height: 48px !important;
  margin: 0 !important;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35) !important;
  transition: all 0.25s ease !important;
}

.red-btn-retry:hover {
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.5) !important;
  transform: translateY(-1px) !important;
}

.red-btn-retry md-icon {
  color: white !important;
  font-size: 20px !important;
  margin-right: 8px !important;
}