/* ZMikhmon modern login — independent of legacy login-box/card layout */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap");

body.zlogin-body,
body.zlogin-body .wrapper {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #071821 !important;
}

body.zlogin-body .navbar,
body.zlogin-body .sidenav,
body.zlogin-body .pace {
  display: none !important;
}

.zlogin {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: #102a43;
}

.zlogin-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(26, 163, 223, 0.45), transparent 55%),
    radial-gradient(700px 420px at 90% 90%, rgba(0, 90, 130, 0.55), transparent 50%),
    linear-gradient(155deg, #0a4f6e 0%, #008BC9 48%, #05384f 100%);
  overflow: hidden;
}

.zlogin-brand::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 420px;
  height: 420px;
  border: 28px solid rgba(255, 255, 255, 0.08);
  border-radius: 120px;
  transform: rotate(18deg);
  pointer-events: none;
  will-change: transform;
  animation: zlogin-orbit 28s linear infinite;
}

.zlogin-brand::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 80px;
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(-12deg);
  pointer-events: none;
  will-change: transform, opacity;
  animation: zlogin-drift 16s ease-in-out infinite alternate;
}

@keyframes zlogin-orbit {
  from { transform: rotate(18deg) translate3d(0, 0, 0); }
  to { transform: rotate(378deg) translate3d(0, 0, 0); }
}

@keyframes zlogin-drift {
  0% {
    transform: rotate(-12deg) translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: rotate(-4deg) translate3d(-18px, -14px, 0) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: rotate(-20deg) translate3d(12px, -22px, 0) scale(0.94);
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zlogin-brand::before,
  .zlogin-brand::after,
  .zlogin-panel::before,
  .zlogin-panel::after {
    animation: none !important;
  }
}

.zlogin-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin-top: 5vh;
}

.zlogin-mark {
  width: 88px;
  height: 88px;
  display: block;
  margin-bottom: 22px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.zlogin-brand h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.zlogin-brand p {
  margin: 16px 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.zlogin-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.zlogin-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 500;
}

.zlogin-points i {
  width: 28px;
  text-align: center;
  opacity: 0.95;
}

.zlogin-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 40px;
  background:
    linear-gradient(180deg, #f4f7fb 0%, #e8eef5 100%);
}

.zlogin-panel-inner {
  width: 100%;
  max-width: 380px;
  margin-top: 5vh;
}

.zlogin-mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.zlogin-mobile-brand img {
  width: 44px;
  height: 44px;
}

.zlogin-mobile-brand strong {
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #0b6f9a;
}

.zlogin-panel h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #102a43;
}

.zlogin-lead {
  margin: 8px 0 28px;
  color: #627d98;
  font-size: 14px;
}

.zlogin-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #486581;
}

.zlogin-field {
  position: relative;
  margin-bottom: 16px;
}

.zlogin-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #829ab1;
  font-size: 15px;
}

.zlogin-field input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #c9d6e4;
  border-radius: 12px;
  padding: 0 14px 0 40px;
  font-size: 15px;
  font-family: inherit;
  color: #102a43;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zlogin-field input:focus {
  border-color: #008BC9;
  box-shadow: 0 0 0 4px rgba(0, 139, 201, 0.15);
}

.zlogin-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1aa3df, #008BC9);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 139, 201, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.zlogin-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.zlogin-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 13px;
  line-height: 1.4;
}

.zlogin-foot {
  margin-top: 28px;
  font-size: 12px;
  color: #829ab1;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.55;
}

.zlogin-credit {
  display: inline-block;
  margin-top: 4px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 11px;
  opacity: 0.9;
}

/* —— Mobile: same layout model, patterned animated background only —— */
@media (max-width: 900px) {
  body.zlogin-body,
  body.zlogin-body .wrapper {
    overflow: auto;
    min-height: 100%;
  }

  .zlogin {
    grid-template-columns: 1fr;
    position: relative;
    min-height: 100dvh;
    min-height: 100vh;
    overflow: auto;
  }

  .zlogin-brand {
    display: none;
  }

  .zlogin-mobile-brand {
    display: flex;
  }

  .zlogin-mobile-brand strong {
    color: #fff;
  }

  .zlogin-mobile-brand img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  }

  .zlogin-panel {
    position: relative;
    overflow: hidden;
    align-items: stretch;
    justify-content: flex-start;
    padding: 56px 20px 32px;
    background:
      radial-gradient(900px 500px at 15% 10%, rgba(26, 163, 223, 0.45), transparent 55%),
      radial-gradient(700px 420px at 90% 90%, rgba(0, 90, 130, 0.55), transparent 50%),
      linear-gradient(155deg, #0a4f6e 0%, #008BC9 48%, #05384f 100%);
  }

  .zlogin-panel::before {
    content: "";
    position: absolute;
    inset: -18% auto auto -20%;
    width: 300px;
    height: 300px;
    border: 22px solid rgba(255, 255, 255, 0.1);
    border-radius: 90px;
    transform: rotate(18deg);
    pointer-events: none;
    will-change: transform;
    animation: zlogin-orbit 28s linear infinite;
    z-index: 0;
  }

  .zlogin-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 64px;
    background: rgba(255, 255, 255, 0.07);
    transform: rotate(-12deg);
    pointer-events: none;
    will-change: transform, opacity;
    animation: zlogin-drift 16s ease-in-out infinite alternate;
    z-index: 0;
  }

  .zlogin-panel-inner {
    position: relative;
    z-index: 1;
    max-width: 380px;
    width: 100%;
    margin: 4vh auto 0;
    padding-top: 8px;
  }

  .zlogin-mobile-brand {
    margin-bottom: 16px;
  }

  .zlogin-panel h2 {
    color: #fff;
  }

  .zlogin-lead {
    color: rgba(255, 255, 255, 0.78);
  }

  .zlogin-form label {
    color: rgba(255, 255, 255, 0.72);
  }

  .zlogin-field i {
    color: #5b7a90;
  }

  .zlogin-field input {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(7, 24, 33, 0.12);
  }

  .zlogin-field input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
  }

  .zlogin-submit {
    box-shadow: 0 12px 28px rgba(7, 24, 33, 0.28);
  }

  .zlogin-error {
    background: rgba(253, 232, 232, 0.95);
  }

  .zlogin-foot {
    color: rgba(255, 255, 255, 0.55);
  }
}
