/* Extracted from pages/index.php */

/* Block 1 */

body {
  font-family: 'Source Sans Pro', sans-serif;
  background-color: #f4f6f9;
}

.lockscreen-logo .login-brand-logo {
  display: block;
  width: 120px;
  max-width: 36vw;
  margin: 0 auto;
  height: auto;
}

/* Align brand mark with credentials field center (not wrapper center). */
.lockscreen .lockscreen-logo {
  transform: translateX(36px);
}

@media (max-width: 576px) {
  .lockscreen .lockscreen-logo {
    transform: translateX(22px);
  }
}

/* Overlay iniziale */
#entryOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f4f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}
#entryOverlay.hide {
  opacity: 0;
  pointer-events: none;
}
.loader {
  width: 60px;
  height: 60px;
  border: 5px solid #ccc;
  border-top-color: #444;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#mainContent {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

/* Overlay con cerchio animato */
#circleOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #f4f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  visibility: hidden;
  overflow: hidden;
}
#circleOverlay .circle {
  position: absolute;
  width: 2000px;
  height: 2000px;
  border-radius: 50%;
  border: 6px solid #0d6efd;
  background: transparent;
  transform: scale(0);
  z-index: 1;
}
#circleOverlay .circle-logo {
  position: relative;
  z-index: 2;
  width: 450px;
  height: auto;
}
#circleOverlay.active {
  visibility: visible;
}
#circleOverlay.active .circle {
  animation: logoGrow 1.5s ease-in-out forwards;
}
@keyframes logoGrow {
  0%   { transform: scale(0); opacity: 0; }
  20%  { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.5); opacity: 1; }
  80%  { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

/* 🔧 Correzione principale: rimuove sfondo bianco del contenitore */
.lockscreen-item {
  background: transparent !important;
  box-shadow: none !important;
}

/* Campi input più uniformi e coerenti */
.lockscreen-credentials .input-group {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 15px;
}
.lockscreen-credentials .input-group-text {
  background: transparent !important;
  border: none !important;
  color: #6c757d !important;
  font-size: 1.1rem;
  padding-left: 14px;
}
.lockscreen-credentials .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px;
  padding: 12px 14px;
}
.lockscreen-credentials .form-control::placeholder {
  color: #adb5bd;
}
.lockscreen-credentials .form-control:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Pulsante invio */
.lockscreen-credentials .btn {
  background-color: #0d6efd;
  color: #fff !important;
  border: none;
  border-radius: 0;
  padding: 0 18px;
  transition: background-color 0.2s ease-in-out;
}
.lockscreen-credentials .btn:hover {
  background-color: #0b5ed7;
}

/* Rimuove qualsiasi padding o bianco extra nel contenitore del form */
.lockscreen-credentials {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* Sposta più in basso l'immagine utente per centrarla meglio */
.lockscreen-image {
  margin-top: 25px; /* 🔧 valore perfetto per centrarla */
}
.site-index-panel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.site-index-panel a {
  color: transparent;
  font-size: 1px;
}
.reference-digest {
  max-width: 360px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f8fbff;
  font-size: 12px;
  color: #5b6675;
}
.reference-digest h2 {
  font-size: 12px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.reference-digest ul {
  margin: 0;
  padding-left: 18px;
}
.reference-digest a {
  color: #5b6675;
}

/* 2FA modal launched from lockscreen */
#twoFactorModal .modal-dialog {
  width: min(96vw, 980px);
  max-width: 980px;
  margin: 1rem auto;
}

#twoFactorModal .modal-content {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(7, 22, 46, 0.28);
}

#twoFactorModal .modal-header {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #dbe5f1;
  background: linear-gradient(135deg, #f7fbff, #eef5ff);
}

#twoFactorModal .modal-title {
  font-weight: 700;
  color: #12315d;
}

#twoFactorModal .modal-body {
  padding: 0;
  overflow: hidden;
  background: #f1f5fb;
}

#twoFactorFrame {
  width: 100%;
  height: min(86vh, 860px);
  min-height: 680px;
  border: 0;
  display: block;
  background: #f1f5fb;
}

@media (max-width: 991.98px) {
  #twoFactorModal .modal-dialog {
    width: calc(100vw - 1rem);
    max-width: none;
    margin: 0.5rem auto;
  }

  #twoFactorFrame {
    height: 84vh;
    min-height: 620px;
  }
}

@media (max-width: 576px) {
  #twoFactorModal .modal-header {
    padding: 0.75rem 0.9rem;
  }

  #twoFactorModal .modal-title {
    font-size: 1rem;
  }

  #twoFactorFrame {
    height: 82vh;
    min-height: 560px;
  }
}

/* Privacy phone login layout */
body.login-layout-privacy_phone {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #eef1f6 0%, #d9dee6 100%);
  overflow: hidden;
}

body.login-layout-privacy_phone .login-privacy-shell {
  width: min(100%, 980px);
  padding: 20px;
}

body.login-layout-privacy_phone .login-privacy-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  perspective: 800px;
}

body.login-layout-privacy_phone .login-privacy-phone {
  width: 256px;
  height: 537px;
  position: relative;
  transform-style: preserve-3d;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

body.login-layout-privacy_phone .login-privacy-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #c0d0de, #a8bcd0, #b4c4d4);
  border-radius: 30px;
  transform: translateZ(-16px);
}

body.login-layout-privacy_phone .login-privacy-edge {
  position: absolute;
  background: linear-gradient(180deg, #c8d8e5, #a8b8ca, #b8c8d6);
}

body.login-layout-privacy_phone .login-privacy-edge-r {
  top: 30px;
  bottom: 30px;
  right: 0;
  width: 16px;
  transform-origin: right center;
  transform: rotateY(-90deg);
}

body.login-layout-privacy_phone .login-privacy-edge-l {
  top: 30px;
  bottom: 30px;
  left: 0;
  width: 16px;
  transform-origin: left center;
  transform: rotateY(90deg);
}

body.login-layout-privacy_phone .login-privacy-edge-t {
  left: 30px;
  right: 30px;
  top: 0;
  height: 16px;
  transform-origin: center top;
  transform: rotateX(-90deg);
  background: linear-gradient(90deg, #c0d0de, #b0c2d2, #c4d4e2);
}

body.login-layout-privacy_phone .login-privacy-edge-b {
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 16px;
  transform-origin: center bottom;
  transform: rotateX(90deg);
  background: linear-gradient(90deg, #b0c0d0, #a0b0c2, #b8c8d6);
}

body.login-layout-privacy_phone .login-privacy-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  transform-style: preserve-3d;
}

body.login-layout-privacy_phone .login-privacy-corner-tl { top: 0; left: 0; }
body.login-layout-privacy_phone .login-privacy-corner-tr { top: 0; right: 0; }
body.login-layout-privacy_phone .login-privacy-corner-bl { bottom: 0; left: 0; }
body.login-layout-privacy_phone .login-privacy-corner-br { bottom: 0; right: 0; }

body.login-layout-privacy_phone .login-privacy-c-layer {
  position: absolute;
  inset: 0;
}

body.login-layout-privacy_phone .login-privacy-corner-tl .login-privacy-c-layer { border-top: 2px solid #b3c3d3; border-left: 2px solid #b3c3d3; border-radius: 30px 0 0 0; }
body.login-layout-privacy_phone .login-privacy-corner-tr .login-privacy-c-layer { border-top: 2px solid #b3c3d3; border-right: 2px solid #b3c3d3; border-radius: 0 30px 0 0; }
body.login-layout-privacy_phone .login-privacy-corner-bl .login-privacy-c-layer { border-bottom: 2px solid #b3c3d3; border-left: 2px solid #b3c3d3; border-radius: 0 0 0 30px; }
body.login-layout-privacy_phone .login-privacy-corner-br .login-privacy-c-layer { border-bottom: 2px solid #b3c3d3; border-right: 2px solid #b3c3d3; border-radius: 0 0 30px 0; }

body.login-layout-privacy_phone .login-privacy-edge-r::before {
  content: "";
  position: absolute;
  top: 110px;
  left: 2px;
  right: 2px;
  height: 36px;
  background: #cdd8e4;
  border-radius: 2px;
  transform: translateZ(1px);
  box-shadow: 0 0 0 1px #90a1b3;
}

body.login-layout-privacy_phone .login-privacy-edge-l::before {
  content: "";
  position: absolute;
  top: 90px;
  left: 2px;
  right: 2px;
  height: 26px;
  background: #cdd8e4;
  border-radius: 2px;
  transform: translateZ(1px);
  box-shadow: 0 0 0 1px #90a1b3;
}

body.login-layout-privacy_phone .login-privacy-edge-l::after {
  content: "";
  position: absolute;
  top: 126px;
  left: 2px;
  right: 2px;
  height: 26px;
  background: #cdd8e4;
  border-radius: 2px;
  transform: translateZ(1px);
  box-shadow: 0 0 0 1px #90a1b3;
}

body.login-layout-privacy_phone .login-privacy-edge-b::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateZ(-1px);
  width: 20px;
  height: 7px;
  background: #3a4650;
  border-radius: 3.5px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5), inset 0 -0.5px 1px rgba(0,0,0,0.2);
}

body.login-layout-privacy_phone .login-privacy-edge-b::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + 22px), -50%);
  width: 2px;
  height: 2px;
  background: #4a5a68;
  border-radius: 50%;
  box-shadow: 4px 0 0 #4a5a68, 8px 0 0 #4a5a68, -44px 0 0 #4a5a68, -48px 0 0 #4a5a68, -52px 0 0 #4a5a68;
}

body.login-layout-privacy_phone .login-privacy-bezel {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #d0dde8, #b8cad8, #c4d4e2);
  border-radius: 30px;
  padding: 3px;
  transform: translateZ(1px);
}

body.login-layout-privacy_phone .login-privacy-inner {
  width: 100%;
  height: 100%;
  background: #080808;
  border-radius: 27px;
  padding: 3px;
}

body.login-layout-privacy_phone .login-privacy-screen {
  --fixlab-login-privacy-screen-mask: 0;
  --fixlab-login-privacy-notif-mask: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #080808;
}

body.login-layout-privacy_phone .login-privacy-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--fixlab-login-privacy-screen-mask);
  z-index: 20;
  pointer-events: none;
}

body.login-layout-privacy_phone .login-privacy-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background-color: #080808;
  background-image:
    var(--fixlab-login-wallpaper-url),
    url("../../assets/img/login/privacy-phone-wallpaper-33793.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.login-layout-privacy_phone .login-privacy-wallpaper::before {
  content: none;
}

body.login-layout-privacy_phone .login-privacy-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px 0;
  position: relative;
  z-index: 10;
  height: 28px;
  color: rgba(255, 255, 255, 0.92);
}

body.login-layout-privacy_phone .login-privacy-time {
  font-size: 0.62rem;
  font-weight: 600;
}

body.login-layout-privacy_phone .login-privacy-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

body.login-layout-privacy_phone .login-privacy-status-icons svg { display: block; }

body.login-layout-privacy_phone .login-privacy-notification {
  margin: 38px 9px 0;
  background: rgba(18,16,26,0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 18px;
  padding: 12px 14px;
  position: relative;
  z-index: 10;
}

body.login-layout-privacy_phone .login-privacy-notification::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--fixlab-login-privacy-notif-mask);
  z-index: 15;
  border-radius: 18px;
  pointer-events: none;
}

body.login-layout-privacy_phone .login-privacy-notification-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

body.login-layout-privacy_phone .login-privacy-notification-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #3b82f6;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

body.login-layout-privacy_phone .login-privacy-notification-icon svg { display: block; }

body.login-layout-privacy_phone .login-privacy-notification-app { font-size: 0.5rem; color: rgba(255,255,255,0.4); }
body.login-layout-privacy_phone .login-privacy-notification-when { font-size: 0.46rem; color: rgba(255,255,255,0.25); margin-left: auto; }

body.login-layout-privacy_phone .login-privacy-notification-title {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2px;
}

body.login-layout-privacy_phone .login-privacy-notification-body {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.45;
}

body.login-layout-privacy_phone .login-privacy-dock {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 8px 14px;
}

body.login-layout-privacy_phone .login-privacy-dock-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

body.login-layout-privacy_phone .login-privacy-dock-icon svg { display: block; }

body.login-layout-privacy_phone .login-privacy-dock-icon.phone { background: linear-gradient(145deg, #34d058, #22a847); }
body.login-layout-privacy_phone .login-privacy-dock-icon.msg { background: linear-gradient(145deg, #5b7cf7, #3b5ce4); }
body.login-layout-privacy_phone .login-privacy-dock-icon.browser { background: linear-gradient(145deg, #ea4335, #dd3327); }
body.login-layout-privacy_phone .login-privacy-dock-icon.cam { background: linear-gradient(145deg, #f5a623, #e8931a); }

body.login-layout-privacy_phone .login-privacy-home-bar {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 3.5px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  z-index: 10;
}

body.login-layout-privacy_phone .login-privacy-side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 320px;
}

body.login-layout-privacy_phone .login-privacy-form-wrap {
  max-width: 420px;
}

body.login-layout-privacy_phone .login-privacy-input-group {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  border-radius: 9px;
  border: 1px solid #d7dde8;
  background: #f4f7fb;
  overflow: hidden;
  margin-bottom: 8px;
}

body.login-layout-privacy_phone .login-privacy-input-group-pass {
  grid-template-columns: 28px 1fr 46px;
}

body.login-layout-privacy_phone .login-privacy-input-icon {
  text-align: center;
  color: #8392a7;
  font-size: 0.9rem;
}

body.login-layout-privacy_phone .login-privacy-input-group .form-control {
  border: none;
  background: transparent;
  box-shadow: none;
  min-height: 38px;
  padding: 9px 10px;
  font-size: 0.9rem;
}

body.login-layout-privacy_phone .login-privacy-submit-btn {
  border: none;
  height: 100%;
  min-height: 38px;
  color: #fff;
  background: #1e73ea;
  border-radius: 0 8px 8px 0;
}

body.login-layout-privacy_phone .login-privacy-form-card .help-block {
  font-size: 0.76rem;
}

body.login-layout-privacy_phone .login-privacy-form-card .lockscreen-footer {
  font-size: 0.86rem;
}

body.login-layout-privacy_phone .login-privacy-panel {
  max-width: 240px;
  color: #1f2d3d;
}

body.login-layout-privacy_phone .login-privacy-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.login-layout-privacy_phone .login-privacy-panel-sub {
  font-size: 0.68rem;
  color: #79869a;
}

body.login-layout-privacy_phone .login-privacy-angle-readout {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #596a82;
}

body.login-layout-privacy_phone .login-privacy-hint {
  margin-top: 10px;
  font-size: 0.62rem;
  color: #8a97aa;
}

@media (max-width: 840px) {
  body.login-layout-privacy_phone .login-privacy-scene {
    flex-direction: column;
    gap: 1.5rem;
  }

  body.login-layout-privacy_phone .login-privacy-side {
    min-width: 0;
    width: 100%;
    align-items: center;
  }

  body.login-layout-privacy_phone .login-privacy-form-wrap {
    width: min(100%, 420px);
  }

  body.login-layout-privacy_phone .login-privacy-panel {
    max-width: 420px;
    text-align: center;
  }
}

/* Animated Login */
body.login-layout-animated_ring {
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1e2a3a 0%, #2d3e50 100%);
}

body.login-layout-animated_ring .animated-login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 2rem 1rem;
}

body.login-layout-animated_ring .animated-login-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(640px, 100%);
  min-height: 620px;
}

body.login-layout-animated_ring .animated-login-ring {
  position: absolute;
  width: 560px;
  height: 560px;
  animation: animatedLoginRotate 20s linear infinite;
  pointer-events: none;
}

body.login-layout-animated_ring .animated-login-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 35px;
  border-radius: 4px;
  background: #4a5f7f;
  transform: translate(-50%, -50%) rotate(var(--animated-login-bar-angle)) translateY(-255px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.login-layout-animated_ring .animated-login-bar.is-active {
  background: linear-gradient(180deg, #ffa500, #ff8c00);
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.8);
}

body.login-layout-animated_ring .animated-login-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 2rem));
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(30, 42, 58, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

body.login-layout-animated_ring .animated-login-brand {
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

body.login-layout-animated_ring .animated-login-card h1 {
  margin: 0 0 1.85rem;
  color: #ffa500;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

body.login-layout-animated_ring .animated-login-input-group {
  position: relative;
  margin-bottom: 1.25rem;
}

body.login-layout-animated_ring .animated-login-input-group input:not([type="hidden"]) {
  width: 100%;
  padding: 0.78rem 2.7rem 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

body.login-layout-animated_ring .animated-login-input-group input:not([type="hidden"]):focus {
  border-color: #ffa500;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

body.login-layout-animated_ring .animated-login-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.login-layout-animated_ring .animated-login-input-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  color: rgba(255, 255, 255, 0.55);
  transform: translateY(-50%);
  pointer-events: none;
}

body.login-layout-animated_ring .animated-login-submit {
  position: relative;
  width: 100%;
  padding: 0.85rem;
  overflow: hidden;
  border: 0;
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(90deg, #ffa500, #ff8c00);
  box-shadow: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.login-layout-animated_ring .animated-login-submit:hover,
body.login-layout-animated_ring .animated-login-submit:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 165, 0, 0.5);
}

body.login-layout-animated_ring .animated-login-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.login-layout-animated_ring .animated-login-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

body.login-layout-animated_ring .animated-login-help {
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-align: center;
}

body.login-layout-animated_ring .animated-login-footer {
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

body.login-layout-animated_ring .alert-danger {
  border-color: rgba(255, 120, 120, 0.45);
  color: #ffd8d8;
  background: rgba(160, 32, 32, 0.35);
}

@keyframes animatedLoginRotate {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px), (max-height: 620px) {
  body.login-layout-animated_ring {
    overflow: auto;
  }

  body.login-layout-animated_ring .animated-login-shell {
    padding: 1rem;
  }

}

@media (max-width: 560px) {
  body.login-layout-animated_ring .animated-login-stage {
    min-height: min(500px, calc(100vh - 2rem));
  }

  body.login-layout-animated_ring .animated-login-ring {
    width: min(390px, calc(100vw - 0.5rem));
    height: min(390px, calc(100vw - 0.5rem));
  }

  body.login-layout-animated_ring .animated-login-bar {
    width: 6px;
    height: 28px;
    transform: translate(-50%, -50%) rotate(var(--animated-login-bar-angle)) translateY(max(-177px, calc(-50vw + 1rem)));
  }

  body.login-layout-animated_ring .animated-login-card {
    width: min(420px, calc(100vw - 3rem));
    padding: 2rem 1.4rem;
  }
}

@media (max-height: 620px) and (min-width: 561px) {
  body.login-layout-animated_ring .animated-login-stage {
    min-height: 500px;
  }

  body.login-layout-animated_ring .animated-login-ring {
    width: 480px;
    height: 480px;
  }

  body.login-layout-animated_ring .animated-login-bar {
    height: 30px;
    transform: translate(-50%, -50%) rotate(var(--animated-login-bar-angle)) translateY(-220px);
  }

  body.login-layout-animated_ring .animated-login-card {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.login-layout-animated_ring .animated-login-ring {
    animation: none;
  }

  body.login-layout-animated_ring .animated-login-bar,
  body.login-layout-animated_ring .animated-login-submit {
    transition: none;
  }
}

/* Moving Gradient Login */
body.login-layout-moving_gradient {
  min-height: 100vh;
  overflow: hidden;
  color: #eaf1ff;
  background:
    radial-gradient(1200px 800px at 80% -10%, #1a2550 0%, transparent 55%),
    linear-gradient(180deg, #0b1020, #111a2f);
}

body.login-layout-moving_gradient .moving-gradient-login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 1.5rem;
}

body.login-layout-moving_gradient .moving-gradient-login-bg {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

body.login-layout-moving_gradient .moving-gradient-login-blob {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  opacity: 0.55;
  filter: blur(60px);
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 30% 30%, #7aa8ff 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, #56e3c6 0%, transparent 60%);
  animation: movingGradientLoginDrift 20s ease-in-out infinite;
}

body.login-layout-moving_gradient .moving-gradient-login-blob-one {
  top: -8vmax;
  left: -10vmax;
  animation-duration: 26s;
}

body.login-layout-moving_gradient .moving-gradient-login-blob-two {
  right: -12vmax;
  bottom: -14vmax;
  animation-duration: 28s;
  animation-delay: -10s;
  background:
    radial-gradient(circle at 40% 40%, #b58bff 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, #7aa8ff 0%, transparent 60%);
}

body.login-layout-moving_gradient .moving-gradient-login-blob-three {
  top: 60%;
  left: 40%;
  width: 50vmax;
  height: 50vmax;
  opacity: 0.45;
  animation-duration: 30s;
  animation-delay: -5s;
  background:
    radial-gradient(circle at 30% 70%, #4de6d1 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, #8db6ff 0%, transparent 60%);
}

body.login-layout-moving_gradient .moving-gradient-login-grain {
  position: absolute;
  inset: -20%;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.24) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.2) 0 0.6px, transparent 0.8px);
  background-size: 5px 5px, 7px 7px;
  transform: translateZ(0);
}

body.login-layout-moving_gradient .moving-gradient-login-card {
  width: min(520px, 92vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

body.login-layout-moving_gradient .moving-gradient-login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

body.login-layout-moving_gradient .moving-gradient-login-brand {
  color: #eaf1ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.login-layout-moving_gradient .moving-gradient-login-badge {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #eaf1ff;
  background: linear-gradient(90deg, rgba(135, 180, 255, 0.25), rgba(85, 227, 196, 0.25));
  font-size: 0.78rem;
  font-weight: 700;
}

body.login-layout-moving_gradient .moving-gradient-login-panel {
  padding: 1.4rem clamp(1.2rem, 4vw, 1.85rem) 1.6rem;
}

body.login-layout-moving_gradient .moving-gradient-login-panel h1 {
  margin: 0;
  color: #eaf1ff;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 800;
  text-align: center;
}

body.login-layout-moving_gradient .moving-gradient-login-lead {
  margin: 0.35rem 0 1.65rem;
  color: #a8b6d5;
  text-align: center;
}

body.login-layout-moving_gradient .moving-gradient-login-form {
  display: grid;
  gap: 1.2rem;
}

body.login-layout-moving_gradient .moving-gradient-login-field {
  position: relative;
}

body.login-layout-moving_gradient .moving-gradient-login-field input:not([type="hidden"]) {
  width: 100%;
  padding: 1rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  outline: 0;
  color: #eaf1ff;
  background: rgba(12, 18, 32, 0.45);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s;
}

body.login-layout-moving_gradient .moving-gradient-login-field input::placeholder {
  color: transparent;
}

body.login-layout-moving_gradient .moving-gradient-login-field label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin: 0;
  padding: 0 0.4rem;
  border-radius: 6px;
  color: #a8b6d5;
  background: rgba(12, 18, 32, 0.82);
  pointer-events: none;
  transition: transform 0.18s, top 0.18s, color 0.18s;
}

body.login-layout-moving_gradient .moving-gradient-login-field input:not([type="hidden"]):focus {
  border-color: rgba(135, 180, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(135, 180, 255, 0.18), 0 10px 22px rgba(0, 0, 0, 0.25);
}

body.login-layout-moving_gradient .moving-gradient-login-field input:not([type="hidden"]):not(:placeholder-shown) + label,
body.login-layout-moving_gradient .moving-gradient-login-field input:not([type="hidden"]):focus + label {
  top: 0.4rem;
  color: #87b4ff;
  transform: translateY(-1.35rem) scale(0.88);
}

body.login-layout-moving_gradient .moving-gradient-login-submit {
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 14px;
  outline: 0;
  color: #0b111c;
  background: linear-gradient(90deg, #87b4ff, #55e3c4);
  box-shadow: 0 14px 28px rgba(135, 180, 255, 0.25), 0 10px 22px rgba(85, 227, 196, 0.18);
  font-weight: 800;
  transition: transform 0.08s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

body.login-layout-moving_gradient .moving-gradient-login-submit:hover {
  filter: brightness(1.05);
}

body.login-layout-moving_gradient .moving-gradient-login-submit:active {
  transform: translateY(1px) scale(0.99);
}

body.login-layout-moving_gradient .moving-gradient-login-submit:focus-visible {
  outline: 2px solid rgba(135, 180, 255, 0.9);
  outline-offset: 3px;
}

body.login-layout-moving_gradient .moving-gradient-login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.login-layout-moving_gradient .moving-gradient-login-help,
body.login-layout-moving_gradient .moving-gradient-login-footer {
  color: #a8b6d5;
  text-align: center;
}

body.login-layout-moving_gradient .moving-gradient-login-help {
  margin-top: 1rem;
  font-size: 0.82rem;
}

body.login-layout-moving_gradient .moving-gradient-login-footer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

body.login-layout-moving_gradient .alert-danger {
  border-color: rgba(255, 143, 160, 0.36);
  color: #ffdce2;
  background: rgba(125, 28, 54, 0.42);
}

@keyframes movingGradientLoginDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -3%, 0) scale(1.04); }
}

@media (max-width: 560px), (max-height: 620px) {
  body.login-layout-moving_gradient {
    overflow: auto;
  }

  body.login-layout-moving_gradient .moving-gradient-login-shell {
    padding: 1rem;
  }

  body.login-layout-moving_gradient .moving-gradient-login-panel {
    padding-top: 1.15rem;
    padding-bottom: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.login-layout-moving_gradient .moving-gradient-login-blob {
    animation: none;
  }

  body.login-layout-moving_gradient .moving-gradient-login-field input:not([type="hidden"]),
  body.login-layout-moving_gradient .moving-gradient-login-field label,
  body.login-layout-moving_gradient .moving-gradient-login-submit {
    transition: none;
  }
}
