/* None Server */
@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  --bg: #06080f;
  --surface: rgba(12, 16, 28, 0.78);
  --surface2: rgba(18, 24, 42, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e4eaf8;
  --text2: #6e7fa8;
  --text3: #343f5c;
  --accent: #38bdf8;
  --accent2: #818cf8;
  --accent3: #34d399;
  --accent4: #fbbf24;
  --accent5: #a78bfa;
  --danger: #f87171;
  --glow: rgba(56, 189, 248, 0.16);
  --r: 14px;
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
[data-theme="light"] {
  --bg: #e8eef8;
  --surface: rgba(255, 255, 255, 0.85);
  --surface2: rgba(238, 244, 255, 0.75);
  --border: rgba(0, 0, 0, 0.07);
  --text: #0f1623;
  --text2: #4a567a;
  --text3: #9ba8c5;
  --accent: #3967d9;
  --accent3: #007c00;
  --accent4: #e45b00;
  --accent5: #8d09d6;
  --glow: rgba(56, 189, 248, 0.14);
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s, color 0.4s;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── CARD ── */
.card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 42px 40px 36px;
  backdrop-filter: blur(28px) saturate(1.5);
  box-shadow: var(--shadow);
  animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background 0.4s, border-color 0.4s;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── BRAND ── */
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 26px;
}
.brand-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(140deg, #000000 0%, #000000 55%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(56, 189, 248, 0.28);
  position: relative;
  overflow: hidden;
}
.brand-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    transparent 55%
  );*/
  background-color: #ffffff;
}
.brand-icon img {
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 1;
}
.brand-name {
  font-family: "Exo 2", sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text);
  line-height: 1.1;
}
.brand-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
  margin-left: 4px;
  opacity: 0.8;
}

/* module pills */
.mod-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  justify-content: center;
}
.pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid;
}
.p-wh {
  color: var(--accent3);
  border-color: rgba(0, 124, 0, 0.22);
  background: rgba(0, 124, 0, 0.07);
}
.p-mp {
  color: var(--accent4);
  border-color: rgba(228, 91, 0, 0.22);
  background: rgba(228, 91, 0, 0.07);
}
.p-ac {
  color: var(--accent5);
  border-color: rgba(141, 9, 214, 0.22);
  background: rgba(141, 9, 214, 0.07);
}
.pill svg {
  width: 10px;
  height: 10px;
}

.heading {
  font-family: "Exo 2", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 5px;
  text-align: center;
}
.subhead {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 12px;
  text-align: center;
}

/* ── FIELDS ── */
.field {
  margin-bottom: 15px;
}
.flabel {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 7px;
}
.iwrap {
  position: relative;
  display: flex;
  align-items: center;
}
.iico {
  position: absolute;
  left: 13px;
  pointer-events: none;
  color: var(--text3);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.iico svg {
  width: 15px;
  height: 15px;
}
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 13px 12px 40px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}
input::placeholder {
  color: var(--text3);
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
  background: var(--surface);
}
.iwrap:focus-within .iico {
  color: var(--accent);
}
.eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  padding: 5px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.eye-btn:hover {
  color: var(--text2);
}
.eye-btn svg {
  width: 15px;
  height: 15px;
}
.id-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text3);
  min-height: 16px;
  transition: all 0.2s;
}
.id-hint svg {
  width: 10px;
  height: 10px;
}
.id-hint.email {
  color: #38bdf8;
}
.id-hint.uname {
  color: #a78bfa;
}

/* ── OPTIONS ── */
.options-row {
  display: flex;
  align-items: center;
  /*justify-content: space-between;*/
  justify-content: end;
  margin-bottom: 20px;
}
.chk-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.chk-wrap input {
  display: none;
}
.chk-box {
  width: 16px;
  height: 16px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.chk-wrap input:checked ~ .chk-box {
  background: var(--accent);
  border-color: var(--accent);
}
.chk-box svg {
  display: none;
}
.chk-wrap input:checked ~ .chk-box svg {
  display: block;
}
.chk-lbl {
  font-size: 13px;
  color: var(--text2);
}
.forgot {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.forgot:hover {
  opacity: 0.7;
}

/* ── ERROR ── */
.err-box {
  display: none;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 10px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 12.2px;
  animation: shake 0.38s ease;
}
.err-box.show {
  display: flex;
}
.err-box svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3.9px;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

/* ── BUTTON ── */
.btn-login {
  width: 100%;
  padding: 13.5px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-family: "Exo 2", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(56, 189, 248, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-login:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 36px rgba(56, 189, 248, 0.35);
}
.btn-login:active {
  transform: translateY(0);
}
.btn-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    transparent 55%
  );
}
.btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.btn-inner svg {
  width: 16px;
  height: 16px;
}
.btn-login.loading .btn-inner {
  opacity: 0;
}
.spin-wrap {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}
.btn-login.loading .spin-wrap {
  display: flex;
}
.spin {
  width: 21px;
  height: 21px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── AUTH STEPS ── */
.auth-steps {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 8px;
  flex-direction: column;
}
.auth-steps.show {
  display: flex;
}
.srow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text2);
}
.sicon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text3);
}
.srow.active .sdot {
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent);
  animation: pd 0.8s ease-in-out infinite;
}
.srow.done svg {
  color: var(--accent3);
}
.srow.done {
  color: var(--text);
}
.srow.fail svg {
  color: var(--danger);
}
@keyframes pd {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ── FOOTER ── */
.div-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
}
.div-sep hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--border);
}
.div-sep span {
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ver {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}
.sys-ok {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent3);
  font-weight: 500;
}
.sys-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent3);
  animation: ps 2s ease-in-out infinite;
}
@keyframes ps {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);
  }
}

/* ── THEME BTN ── */
.theme-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all 0.2s;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}
.theme-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent);
  color: var(--text);
}
.theme-btn svg {
  width: 16px;
  height: 16px;
}
.i-moon {
  display: block;
}
.i-sun {
  display: none;
}
[data-theme="light"] .i-moon {
  display: none;
}
[data-theme="light"] .i-sun {
  display: block;
}

/* ── MODULE SCREEN ── */
.mod-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 8, 15, 0.95);
  align-items: center;
  justify-content: center;
  animation: fi 0.35s ease both;
  backdrop-filter: blur(14px);
  overflow-y: auto;
  padding: 24px;
}
.mod-screen.show {
  display: flex;
}
@keyframes fi {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.mod-wrap {
  width: 100%;
  max-width: 780px;
  animation: su 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes su {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mod-hdr {
  text-align: center;
  margin-bottom: 30px;
}
.mod-hdr h2 {
  font-family: "Exo 2", sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #e4eaf8;
  margin-bottom: 7px;
}
.mod-hdr p {
  font-size: 13.5px;
  color: #6e7fa8;
}
.u-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.18);
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 10px;
}
.u-chip svg {
  width: 12px;
  height: 12px;
}
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 13px;
}
.mc {
  background: rgba(12, 16, 28, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.mc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mca, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.mc:hover {
  transform: translateY(-3px);
}
.mc:hover::before {
  opacity: 1;
}
.mc.wh {
  --mca: rgba(52, 211, 153, 0.09);
}
.mc.wh:hover {
  border-color: rgba(52, 211, 153, 0.4);
}
.mc.mp {
  --mca: rgba(251, 191, 36, 0.09);
}
.mc.mp:hover {
  border-color: rgba(251, 191, 36, 0.4);
}
.mc.ac {
  --mca: rgba(167, 139, 250, 0.09);
}
.mc.ac:hover {
  border-color: rgba(167, 139, 250, 0.4);
}
.mc.adm {
  --mca: rgba(56, 189, 248, 0.09);
}
.mc.adm:hover {
  border-color: rgba(56, 189, 248, 0.4);
}
.mc-ico {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.mc-ico.wh {
  background: rgba(52, 211, 153, 0.12);
}
.mc-ico.mp {
  background: rgba(251, 191, 36, 0.12);
}
.mc-ico.ac {
  background: rgba(167, 139, 250, 0.12);
}
.mc-ico.adm {
  background: rgba(56, 189, 248, 0.12);
}
.mc-title {
  font-family: "Exo 2", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #e4eaf8;
  margin-bottom: 3px;
}
.mc-desc {
  font-size: 12px;
  color: #6e7fa8;
  line-height: 1.55;
}
.mc-arr {
  margin-left: auto;
  color: #2d3a56;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.mc:hover .mc-arr {
  color: #38bdf8;
  transform: translateX(4px);
}
.mc-arr svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px 24px;
  }
  .heading {
    font-size: 20px;
  }
  .mod-pills {
    display: none;
  }
}
