/* src/auth/Login.css */

.login-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(-45deg, #cfd9f1, #e2e9fc, #a1bbf0, #edf2ff);
  background-size: 400% 400%;
  animation: bgSlide 15s ease infinite;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* ─── Premium Animated Background shapes ─── */
.login-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: floatAround 18s infinite alternate ease-in-out;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, #1d4ed8 100%);
  top: -10%;
  left: -10%;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #a855f7 0%, #6d28d9 100%);
  bottom: -15%;
  right: -5%;
  animation-duration: 24s;
  animation-delay: -5s;
}

.shape-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4 0%, #0891b2 100%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 20s;
  animation-delay: -2s;
}

@keyframes floatAround {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(50px, 40px) scale(1.1) rotate(180deg);
  }

  100% {
    transform: translate(-30px, -50px) scale(0.9) rotate(360deg);
  }
}

@keyframes bgSlide {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ─── Main Container Card ─── */
.login-container {
  position: relative;
  z-index: 2;
  display: flex;
  width: 1000px;
  max-width: 100%;
  min-height: 560px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

/* ─── Left Side: Form Area ─── */
.login-form-area {
  flex: 1.1;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.form-content-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 2rem 0;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-label {
  font-size: 0.813rem;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input-wrapper {
  position: relative;
  width: 100%;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translatey(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.938rem;
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-input-wrapper--with-toggle .auth-input {
  padding-right: 3rem;
}

.toggle-pw-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.toggle-pw-btn:hover {
  color: #64748b;
}

.auth-options-right-only {
  display: flex;
  justify-content: flex-end;
  font-size: 0.813rem;
  margin-top: 0.35rem;
}

.auth-forgot-link-blue {
  background: none;
  border: none;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s ease;
}

.auth-forgot-link-blue:hover {
  color: #2563eb;
  text-decoration: underline;
}

.btn-auth-login-pill {
  width: fit-content;
  min-width: 90px;
  padding: 0.45rem 1.5rem;
  border: none;
  border-radius: 50px;
  background: #1e1450;
  color: #ffffff;
  font-size: 0.813rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(30, 20, 80, 0.22);
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.btn-auth-login-pill:hover {
  background: #130a3a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 20, 80, 0.35);
}

/* Forgot password navigation buttons */
.auth-actions-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-auth-cancel {
  flex: 1;
  padding: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: transparent;
  color: #475569;
  font-size: 0.938rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-auth-cancel:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-auth-submit-small {
  padding: 0.45rem 1.4rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 0.813rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.28);
  font-family: inherit;
  white-space: nowrap;
}

.btn-auth-submit-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

/* ─── Right Side: Branding Area ─── */
.login-branding-area {
  flex: 0.9;
  background: #1e1b4b;
  /* Dark indigo */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  box-sizing: border-box;
}

.branding-glow {
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0, 0, 0, 0) 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.branding-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-logo-container {
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
}

.brand-logo-main {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  margin-top: 5px;
}

.brand-logo-fallback {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* ─── Error Messages ─── */
.wl-error-message {
  font-size: 0.75rem;
  color: #ef4444;
  min-height: 0;
  transition: all 0.2s ease;
}

.wl-error-banner {
  font-size: 0.813rem;
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: none;
}

.wl-error-banner:not(:empty) {
  display: block;
}

/* ─── Modal Overlay (OTP / Success) ─── */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.auth-modal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1.75rem 0;
}

/* OTP Digits Groups */
.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.otp-digit-input {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.otp-digit-input:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.otp-timer-line {
  font-size: 0.813rem;
  color: #64748b;
  margin: 0.5rem 0 1.25rem 0;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

.btn-modal-cancel {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  font-weight: 600;
  font-size: 0.938rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-modal-cancel:hover {
  background: #f1f5f9;
}

.btn-modal-confirm {
  flex: 1.2;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.938rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  font-family: inherit;
}

.btn-modal-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

/* Success Card */
.text-center {
  text-align: center;
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  background: #e0f2fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.btn-modal-return {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.938rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  font-family: inherit;
}

.btn-modal-return:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.btn-modal-confirm-proceed {
  display: inline-block;
  padding: 0.45rem 1.75rem;
  border: none;
  border-radius: 50px;
  background: #1e1450;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.813rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(30, 20, 80, 0.22);
  font-family: inherit;
  letter-spacing: 0.02em;
}

.btn-modal-confirm-proceed:hover {
  background: #130a3a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 20, 80, 0.35);
}

.success-icon-wrapper-circle {
  width: 48px;
  height: 48px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  border: 2px solid #bbf7d0;
}

.btn-login-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e1450;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 0.45rem 1.25rem;
  font-size: 0.813rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
  font-family: inherit;
  white-space: nowrap;
}

.btn-login-page-back:hover {
  background: #130a3a;
  transform: translateY(-1px);
}

.success-msg-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 1rem 0 0.35rem 0;
}

.success-msg-desc {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

/* ─── Micro-Animations ─── */
.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-zoom-in {
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── Bootstrap d-none override ─── */
.d-none {
  display: none !important;
}

/* ─── Responsive Styles ─── */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column-reverse;
    width: 480px;
    min-height: auto;
  }

  .login-branding-area {
    flex: none;
    padding: 2.5rem;
  }

  .brand-logo-main {
    max-height: 80px;
  }

  .login-form-area {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 0.75rem;
  }

  .login-container {
    width: 100%;
    border-radius: 16px;
  }

  .login-form-area {
    padding: 2rem 1.5rem;
  }

  .login-branding-area {
    padding: 2rem;
  }
}

/* ---- OTP Animation Styles ---- */
:root {
  --anim-bg: #f8fafc;
  --anim-card: #ffffff;
  --anim-card-border: #e2e8f0;
  --anim-box-bg: #f1f5f9;
  --anim-box-border: #cbd5e1;
  --anim-red: #3b6ef8;
  /* Using primary blue for active instead of red to match dashboard */
  --anim-red-dim: #eff6ff;
  --anim-green: #22c55e;
  --anim-text: #1e293b;
  --anim-text-dim: #64748b;
}

.auth-modal-card-animated {
  position: relative;
  width: 360px;
  height: auto;
  min-height: 400px;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, var(--anim-bg) 100%);
  border: 1px solid var(--anim-card-border);
  border-radius: 28px;
  padding: 28px 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .15);
  transition: background 1.1s ease;
  margin: auto;
}

.auth-modal-card-animated.success-bg {
  /* Use a solid very light green (#ecfdf5) instead of rgba so the page background doesn't bleed through */
  background: radial-gradient(circle at 50% 40%, #ecfdf5 0%, #ffffff 55%, var(--anim-bg) 100%);
}

.auth-modal-card-animated .handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
  margin: 0 auto 26px;
}

.auth-modal-card-animated .headline {
  text-align: center;
}

.auth-modal-card-animated .title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--anim-text);
  letter-spacing: -.2px;
  transition: opacity .5s ease, color .5s ease;
}

.auth-modal-card-animated .subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--anim-text-dim);
  transition: opacity .5s ease;
}

.headline.dim .title {
  opacity: .25;
}

.headline.dim .subtitle {
  opacity: .15;
}

/* ---- OTP row ---- */
.auth-modal-card-animated .stage {
  position: relative;
  height: 150px;
  margin-top: 34px;
}

.auth-modal-card-animated .otp-row {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: flex-start;
  padding-top: 10px;
  transition: opacity .25s ease, transform .25s ease;
}

.otp-row.hidden {
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
}

.auth-modal-card-animated .box {
  position: relative;
  width: 60px;
  height: 64px;
  background: var(--anim-box-bg);
  border: 1px solid var(--anim-box-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--anim-text);
}

.auth-modal-card-animated .box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14%;
  right: 14%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--anim-red), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}

.auth-modal-card-animated .box.filled::before {
  opacity: 1;
}

.auth-modal-card-animated .box.active {
  border-color: var(--anim-red);
}

.auth-modal-card-animated .box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--anim-text);
  caret-color: var(--anim-red);
  font-family: inherit;
}

/* ---- Scatter stage ---- */
.auth-modal-card-animated .scatter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.auth-modal-card-animated .scatter.on {
  opacity: 1;
}

.auth-modal-card-animated .orbit {
  position: relative;
  width: 10px;
  height: 10px;
  animation: spin 2.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-modal-card-animated .sbox {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 56px;
  margin: -28px 0 0 -26px;
  background: var(--anim-box-bg);
  border: 1.5px solid var(--anim-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--anim-text);
  box-shadow: 0 0 18px -4px var(--anim-red-dim);
  transition: transform 1s cubic-bezier(.65, 0, .35, 1), opacity .5s ease;
  opacity: 0;
}

.auth-modal-card-animated .sbox::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 12px;
  padding: 1.5px;
  background: linear-gradient(140deg, var(--anim-red), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.auth-modal-card-animated .sbox.show {
  opacity: 1;
}

.auth-modal-card-animated .sbox.gather {
  transform: translate(0, 0) rotate(0deg) scale(.15) !important;
  opacity: 0;
  transition: transform .55s cubic-bezier(.5, 0, .75, 0), opacity .5s ease .15s;
}

.auth-modal-card-animated svg.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  transition: opacity .3s ease;
}

.auth-modal-card-animated svg.links.on {
  opacity: 1;
}

.auth-modal-card-animated svg.links path {
  fill: none;
  stroke: var(--anim-red);
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  opacity: .55;
}

/* ---- Verify / success stage ---- */
.auth-modal-card-animated .verify-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}

.auth-modal-card-animated .verify-stage.on {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.auth-modal-card-animated .ring-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width .55s cubic-bezier(.65, 0, .35, 1), height .55s cubic-bezier(.65, 0, .35, 1);
}

.auth-modal-card-animated .ring-wrap.shrink {
  width: 64px;
  height: 64px;
}

.auth-modal-card-animated .ring-wrap>svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  opacity: 1;
  transition: opacity .4s ease;
}

.auth-modal-card-animated .ring-wrap.shrink>svg {
  opacity: 0;
}

.auth-modal-card-animated .ring-wrap svg circle {
  fill: none;
  stroke: var(--anim-green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 230;
  stroke-dashoffset: 60;
  animation: dash 1.3s ease-in-out infinite;
}

@keyframes dash {
  0% {
    stroke-dashoffset: 230;
  }

  50% {
    stroke-dashoffset: 40;
  }

  100% {
    stroke-dashoffset: 230;
  }
}

.auth-modal-card-animated .check-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 16px;
  border: 2px solid var(--anim-green);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, .06);
  transform: scale(.4);
  opacity: 0;
  z-index: 2;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .35s ease;
}

.auth-modal-card-animated .check-box.show {
  transform: scale(1);
  opacity: 1;
}

.auth-modal-card-animated .check-box svg {
  width: 26px;
  height: 26px;
}

.auth-modal-card-animated .check-box path {
  fill: none;
  stroke: var(--anim-green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset .4s ease .25s;
}

.auth-modal-card-animated .check-box.show path {
  stroke-dashoffset: 0;
}

.auth-modal-card-animated .center-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--anim-green);
  top: 50%;
  left: 50%;
  margin: -2px 0 0 -2px;
  opacity: .7;
  transition: opacity .3s ease;
}

.auth-modal-card-animated .ring-wrap.shrink .center-dot {
  opacity: 0;
}

.auth-modal-card-animated .lock-caption {
  font-size: 13px;
  font-weight: 700;
  color: var(--anim-green);
  letter-spacing: .2px;
  opacity: 0;
  transition: opacity .5s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-modal-card-animated .lock-caption.show {
  opacity: 1;
}

.auth-modal-card-animated .modal-actions {
  margin-top: 20px;
}

/* ============ Payment Animation (Right Side) ============ */
.payment-animation-container {
  position: relative;
  width: 100%;
  height: 350px;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  z-index: 5;
}

.floating-card {
  width: 240px;
  height: 150px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  animation: floatCard 6s ease-in-out infinite;
  transform-style: preserve-3d;
  z-index: 10;
}

.card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
  border-radius: 6px;
  position: absolute;
  top: 24px;
  left: 24px;
  opacity: 0.9;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.card-line {
  position: absolute;
  bottom: 45px;
  left: 24px;
  width: 120px;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.card-line-short {
  position: absolute;
  bottom: 25px;
  left: 24px;
  width: 60px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.card-logo {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 26px;
  display: flex;
}

.card-logo::before,
.card-logo::after {
  content: '';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 60, 60, 0.85);
  position: absolute;
  mix-blend-mode: screen;
}

.card-logo::after {
  background: rgba(255, 165, 0, 0.85);
  left: 16px;
}

.floating-coin {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 50%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4), inset 0 -4px 6px rgba(0, 0, 0, 0.15), inset 0 4px 6px rgba(255, 255, 255, 0.4);
  z-index: 5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.coin-1 {
  top: 30px;
  left: 15%;
  animation: floatCoin 4.5s ease-in-out infinite 0.5s;
}

.coin-2 {
  bottom: 40px;
  right: 15%;
  animation: floatCoin 5.5s ease-in-out infinite 1.2s;
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.coin-3 {
  top: 90px;
  right: 10%;
  animation: floatCoin 4s ease-in-out infinite 2.5s;
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.coin-4 {
  top: 150px;
  left: 5%;
  animation: floatCoin 5s ease-in-out infinite 0.8s;
  width: 36px;
  height: 36px;
  font-size: 17px;
}

.coin-5 {
  bottom: 25px;
  left: 30%;
  animation: floatCoin 4.2s ease-in-out infinite 1.5s;
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.coin-6 {
  top: 10px;
  right: 25%;
  animation: floatCoin 4.8s ease-in-out infinite 2.2s;
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.transfer-rings .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: spinRing linear infinite;
  z-index: 1;
}

.r-1 {
  width: 300px;
  height: 300px;
  animation-duration: 25s;
  border-color: rgba(167, 139, 250, 0.4);
}

.r-2 {
  width: 400px;
  height: 400px;
  animation-duration: 35s;
  animation-direction: reverse;
  border-color: rgba(96, 165, 250, 0.3);
}

.r-3 {
  width: 500px;
  height: 500px;
  animation-duration: 45s;
  border-color: rgba(52, 211, 153, 0.2);
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0) rotateX(15deg) rotateY(-20deg) scale(1);
  }

  50% {
    transform: translateY(-25px) rotateX(20deg) rotateY(-5deg) scale(1.02);
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

@keyframes floatCoin {

  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-18px) scale(1.1) rotate(15deg);
  }
}

@keyframes spinRing {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}