body.accounts-cloud-bg {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: linear-gradient(155deg, #f7f5f9 0%, #f7f5f9 48%, #fcfcfd 100%) fixed !important;
}

body.accounts-cloud-bg::before,
body.accounts-cloud-bg::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: .68;
  filter: blur(18px);
  will-change: transform;
}

body.accounts-cloud-bg::before {
  top: -8vh;
  left: -12vw;
  width: min(760px, 72vw);
  height: min(330px, 34vw);
  background:
    radial-gradient(ellipse at 24% 62%, rgba(255, 255, 255, .92) 0 16%, transparent 42%),
    radial-gradient(ellipse at 51% 42%, rgba(255, 255, 255, .82) 0 20%, transparent 49%),
    radial-gradient(ellipse at 78% 65%, rgba(255, 255, 255, .7) 0 15%, transparent 42%);
  animation: account-cloud-drift-left 24s ease-in-out infinite alternate;
}

body.accounts-cloud-bg::after {
  right: -14vw;
  bottom: -9vh;
  width: min(820px, 76vw);
  height: min(360px, 38vw);
  background:
    radial-gradient(ellipse at 20% 58%, rgba(255, 255, 255, .62) 0 15%, transparent 42%),
    radial-gradient(ellipse at 48% 42%, rgba(255, 255, 255, .88) 0 22%, transparent 50%),
    radial-gradient(ellipse at 78% 61%, rgba(255, 255, 255, .74) 0 18%, transparent 46%);
  animation: account-cloud-drift-right 28s ease-in-out infinite alternate;
}

body.accounts-cloud-bg #app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

body.accounts-cloud-card .section .card {
  position: relative;
  z-index: 2;
  overflow: visible;
  animation: account-card-enter .72s cubic-bezier(.16, 1, .3, 1) both;
}

body.accounts-cloud-card .section .card::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 4%;
  right: 4%;
  bottom: -34px;
  height: 78px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 13% 54%, rgba(255,255,255,.82) 0 13%, transparent 39%),
    radial-gradient(ellipse at 34% 38%, rgba(255,255,255,.9) 0 18%, transparent 47%),
    radial-gradient(ellipse at 58% 55%, rgba(255,255,255,.78) 0 16%, transparent 43%),
    radial-gradient(ellipse at 81% 42%, rgba(255,255,255,.86) 0 17%, transparent 45%);
  filter: blur(9px);
  transform: translate3d(0, 20px, 0) scale(.92);
  animation:
    account-card-cloud-enter 1.15s .18s cubic-bezier(.16, 1, .3, 1) forwards,
    account-card-cloud-float 9s 1.4s ease-in-out infinite alternate;
}

@keyframes account-cloud-drift-left {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 2vh, 0) scale(1.04); }
}

@keyframes account-cloud-drift-right {
  from { transform: translate3d(0, 0, 0) scale(1.02); }
  to { transform: translate3d(-4vw, -2vh, 0) scale(1); }
}

@keyframes account-card-enter {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes account-card-cloud-enter {
  from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.92); }
  to { opacity: .78; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes account-card-cloud-float {
  from { margin-left: -5px; margin-right: 5px; }
  to { margin-left: 5px; margin-right: -5px; }
}

@media (max-width: 767px) {
  body.accounts-cloud-bg::before,
  body.accounts-cloud-bg::after {
    width: 95vw;
    height: 42vw;
    opacity: .54;
    filter: blur(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.accounts-cloud-bg::before,
  body.accounts-cloud-bg::after,
  body.accounts-cloud-card .section .card,
  body.accounts-cloud-card .section .card::after { animation: none; }

  body.accounts-cloud-card .section .card::after {
    opacity: .72;
    transform: none;
  }
}

/* Paleta de la marca (Auditax) en las pantallas de acceso: cargan Bootstrap desde
   CDN, así que aquí se fijan el color primario, los botones y los enlaces. */
:root {
  --primary: #7C3AED;
  --accent: #7C3AED;
}
a,
.text-primary {
  color: #7C3AED;
}
a:hover {
  color: #7C3AED;
}
.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #7C3AED;
  border-color: #7C3AED;
  box-shadow: 0 2px 6px rgba(168, 91, 255, 0.3);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #493C57 !important;
  border-color: #493C57 !important;
}
.form-control:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 0.2rem rgba(168, 91, 255, 0.24);
}

/* ── Pantallas de acceso: lienzo limpio estilo Stripe / Apple ─────────────── */
body.accounts-cloud-bg {
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(168, 91, 255, 0.14), transparent 70%),
    #f9f7fb !important;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body.accounts-cloud-bg::before,
body.accounts-cloud-bg::after,
body.accounts-cloud-card .section .card::after { display: none; }

body.accounts-cloud-bg .login-brand,
body.accounts-cloud-bg .register-brand { margin: 56px 0 28px !important; text-align: center; }
body.accounts-cloud-bg .login-brand img,
body.accounts-cloud-bg .register-brand img { width: 180px; max-width: 60vw; height: auto; }

body.accounts-cloud-card .section .card,
body.accounts-cloud-card .section .card.border-radius-8 {
  border: 0;
  border-radius: 16px !important;
  box-shadow: 0 0 0 1px rgba(35, 10, 64, 0.05), 0 15px 35px -5px rgba(70, 50, 93, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
}
body.accounts-cloud-card .section .card .card-header {
  justify-content: flex-start !important;
  min-height: 0;
  padding: 32px 36px 4px;
  border-bottom: 0;
}
body.accounts-cloud-card .section .card .card-header h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.022em;
  color: #230a40 !important;
}
body.accounts-cloud-card .section .card .card-body { padding: 20px 36px 32px; }
body.accounts-cloud-card .section .card .btn-lg { min-height: 40px; font-size: 15px; }
body.accounts-cloud-card .form-group > label { color: #230a40; }
body.accounts-cloud-bg .text-job { font-size: 11px; letter-spacing: 0.06em; color: #9487a2; }
body.accounts-cloud-bg .simple-footer { margin: 28px 0 40px; font-size: 12px; color: #9487a2; text-align: center; }

@media (max-width: 575.98px) {
  body.accounts-cloud-card .section .card .card-header { padding: 24px 22px 4px; }
  body.accounts-cloud-card .section .card .card-body { padding: 16px 22px 24px; }
}
