/* =====================================================
   REGISTER SUCCESS DIALOG — register-success-dialog.css
   Prefix: rsd-
   ===================================================== */

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

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

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

@keyframes rsd-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; }
}

@keyframes rsd-email-slide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

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

/* ── Dialog shell ── */
.rsd-dialog {
  width: 460px !important;
  max-width: 94vw !important;
  border-radius: 20px !important;
  overflow: visible !important;
  box-shadow: 0 24px 64px rgba(102, 126, 234, 0.22), 0 8px 24px rgba(0,0,0,0.14) !important;
}

/* ── Content ── */
.rsd-content {
  padding: 0 36px 32px !important;
  background: linear-gradient(160deg, #f8f9ff 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: rsd-fade-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.rsd-icon-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45);
  outline: 5px solid white;
  animation: rsd-circle-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.rsd-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, 0.55);
  animation: rsd-ring-pulse 1.6s ease-out 0.5s infinite;
}

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

/* ── Logo ── */
.rsd-logo {
  width: 148px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  opacity: 0.92;
}

/* ── Title & subtitle ── */
.rsd-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a202c;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.rsd-subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  color: #718096;
  font-weight: 400;
  line-height: 1.5;
}

/* ── Email card ── */
.rsd-email-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.07) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1.5px solid rgba(102, 126, 234, 0.2);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 28px;
  text-align: left;
  animation: rsd-email-slide 0.4s ease 0.55s both;
}

.rsd-email-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rsd-email-icon {
  color: white !important;
  font-size: 22px !important;
  width: 22px !important;
  height: 22px !important;
}

.rsd-email-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rsd-email-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #667eea;
  line-height: 1;
}

.rsd-email-address {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
  word-break: break-all;
  line-height: 1.3;
}

.rsd-email-hint {
  font-size: 13px;
  color: #718096;
  line-height: 1.45;
  margin-top: 4px;
}

/* ── CTA button ── */
.rsd-btn-login {
  width: 100% !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 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(102, 126, 234, 0.4) !important;
  transition: all 0.25s ease !important;
}

.rsd-btn-login:hover {
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.55) !important;
  transform: translateY(-1px) !important;
}

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