/* =====================================================
   LOGIN SUCCESS DIALOG — login-success-dialog.css
   ===================================================== */

/* ── Dialog shell ── */
.login-success-dialog {
  width: 380px;
  max-width: 92vw;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(102, 126, 234, 0.35),
              0 0 0 1px rgba(102, 126, 234, 0.12) !important;
}

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

/* ── Animated check circle ── */
.lsd-check-wrapper {
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsd-check-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: lsd-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.45);
}

/* Expanding ring pulse */
.lsd-check-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(102, 126, 234, 0.4);
  animation: lsd-ring 1.2s ease-out 0.3s both;
  pointer-events: none;
}

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

/* ── Logo ── */
.lsd-logo {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  mix-blend-mode: multiply;
  animation: lsd-fade-up 0.4s ease-out 0.35s both;
}

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

/* ── Subtitle ── */
.lsd-subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  animation: lsd-fade-up 0.4s ease-out 0.55s both;
}

/* ── Progress bar (auto-close timer) ── */
.lsd-progress-track {
  width: 100%;
  height: 4px;
  background: #e8ecf5;
  border-radius: 2px;
  overflow: hidden;
  animation: lsd-fade-up 0.4s ease-out 0.6s both;
}

.lsd-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  /* duration matches the $timeout in the controller (2200ms) */
  animation: lsd-progress 2.2s linear 0.6s both;
  width: 0%;
}

/* ════════════════════════
   Keyframes
   ════════════════════════ */
@keyframes lsd-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

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

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

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

@keyframes lsd-progress {
  from { width: 0%; }
  to   { width: 100%; }
}