:root {
  --bg-main: #0f1117;
  --bg-card: rgba(28, 30, 38, 0.85);
  --bg-light: #1c1f26;
  --accent: #6c5cff;
  --accent-hover: #5848e0;
  --text-main: #e4e6eb;
  --text-muted: #9aa0a6;
  --border: #2c2f36;
}

/* BACKGROUND */
body {
  background: var(--bg-main);
}

.vanta-canvas {
  position: fixed !important;
  inset: 0;
  height: 100% !important;
}

/* subtle glow */
body::before {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108,92,255,0.15), transparent 70%);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
  z-index: -1;
}

/* LOGIN BOX */
.ctlogin-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.ctlogin-main,
.ctcard,
.ctheading,
.ctluser-main {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* LEFT */
.ctleft {
  width: 40%;
  padding: 40px;
  background: linear-gradient(135deg, #1b1e2a, #252836);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RIGHT */
.ctright {
  width: 60%;
  padding: 40px;
}

/* TEXT */
.loadIn {
  color: var(--text-main);
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
}

.ctright p {
  color: var(--text-muted);
  text-align: center;
}

.ctinput label {
  color: #cfd3dc;
  font-size: 0.9rem;
}

/* INPUT */
.ctinput input,
.ctinput select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: 0.2s;
}

.ctinput input:focus,
.ctinput select:focus {
  background: #161a22;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(108,92,255,0.25);
  outline: none;
}

/* BUTTON */
.ctbtn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
  border: none;
  color: #fff !important;
  margin-top: 30px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(108, 92, 255, 0.3);
}

.ctbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 255, 0.5);
}

.ctbtn:focus {
  box-shadow: none !important;
}

/* FOOTER */
.ctlogin-foot {
  color: var(--text-main);
  text-align: center;
  margin-top: 30px;
}

.ctlogin-foot a {
  color: var(--text-main);
  text-decoration: none;
  transition: 0.2s;
}

.ctlogin-foot a:hover {
  color: var(--accent);
}

/* NAV / SIDEBAR */
.ctnav,
#sidebar-wrapper {
  background: #171a21;
}

.sidebar-logo img {
  width: 150px;
}

.list-group-item {
  background: transparent;
  color: var(--text-muted);
  border: none;
  transition: 0.2s;
}

.list-group-item:hover {
  background: #222633;
  color: var(--text-main);
}

.list-group-item.active {
  background: var(--accent);
  color: #fff;
}

#sidebar-wrapper .list-group-item i {
  margin-right: 7px;
}

/* HEADINGS */
.ctheading h2 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 26px;
  padding: 10px 0;
  color: var(--text-main);
}

.ctheading h2 i {
  margin-right: 7px;
}

/* ALERT */
.ctalert {
  background: #111 !important;
  border-left: 4px solid var(--accent);
  padding: 20px 25px !important;
}

.ctalert h3 {
  color: #fff;
}

/* TABLE */
.table-sm th,
.table-sm td {
  padding: 8px 15px;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--text-main);
}

.table-sm td:last-child {
  display: inline-flex;
}

.cttable td:last-child {
  display: revert;
}

/* BUTTON USER */
.ctuserbtn {
  text-transform: uppercase;
  font-weight: bold;
  padding: 12px 25px;
}

.ctuserbtn i {
  margin-right: 5px;
}

/* FILE INPUT */
.ctinput.ctfile input {
  padding: 3px;
}

/* IMAGES */
.ctapplogo img,
.ctappbg img {
  width: 100%;
  object-fit: contain;
}

/* ICONS */
.fa-eye,
.fa-eye-slash {
  color: var(--text-main);
  margin-top: 7px;
  margin-left: 4px;
  font-size: 18px;
}

/* MOBILE */
@media (max-width: 992px) {
  .ctlogin-box {
    position: unset;
    transform: unset;
    padding: 30px 0;
  }

  .ctleft,
  .ctright {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .ctleft {
    padding: 20px;
  }

  .ctright {
    padding: 15px;
  }

  .loadIn {
    font-size: 22px;
  }

  .ctalert {
    padding: 10px !important;
  }

  .ctheading h2 {
    font-size: 20px !important;
  }
}