@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

/* cl- = client login */
:root {
  --cl-bg:     #030d10;
  --cl-teal:   #00e5cc;
  --cl-green:  #00ff9d;
  --cl-red:    #ff4d6d;
  --cl-text:   #d8f0ee;
  --cl-muted:  #3d6e6a;
  --cl-border: rgba(0,229,204,0.22);
  --cl-glass:  rgba(0,229,204,0.04);
}

* { margin:0; padding:0; box-sizing:border-box; }

.cl-body {
  font-family: 'Exo 2', sans-serif;
  background: var(--cl-bg);
  color: var(--cl-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background */
.cl-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 15%, rgba(0,180,160,0.14) 0%, transparent 58%),
    radial-gradient(ellipse 50% 50% at 10% 85%, rgba(0,229,204,0.09) 0%, transparent 55%);
}
.cl-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,204,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,204,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: cl-gridMove 22s linear infinite;
}
@keyframes cl-gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 52px 52px; }
}

/* Left Side */
.cl-left {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 44%; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 50px 44px;
}

/* Divider */
.cl-divider {
  position: fixed; left: 44%; top: 0; bottom: 0;
  width: 1px; z-index: 2;
  background: linear-gradient(180deg,
    transparent,
    rgba(0,229,204,0.25) 25%,
    rgba(0,229,204,0.55) 50%,
    rgba(0,229,204,0.25) 75%,
    transparent);
}
.cl-divider::before {
  content: '';
  position: absolute; left: -4px; top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cl-teal);
  box-shadow: 0 0 18px var(--cl-teal);
  animation: cl-divDot 2.2s ease-in-out infinite;
}
@keyframes cl-divDot { 0%,100%{ opacity:1; } 50%{ opacity:0.25; } }

/* Right Side */
.cl-right {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 56%; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}

/* Brand */
.cl-brand { text-align: center; margin-bottom: 44px; }
.cl-logo {
  width: 88px; height: 88px;
  background: linear-gradient(135deg, rgba(0,229,204,0.18), rgba(0,120,120,0.28));
  border: 2px solid rgba(0,229,204,0.38);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin: 0 auto 22px;
  position: relative;
  box-shadow: 0 0 36px rgba(0,229,204,0.18), inset 0 0 28px rgba(0,229,204,0.05);
  animation: cl-logoPulse 3.2s ease-in-out infinite;
}
@keyframes cl-logoPulse {
  0%,100%{ box-shadow: 0 0 36px rgba(0,229,204,0.18), inset 0 0 28px rgba(0,229,204,0.05); }
  50%    { box-shadow: 0 0 55px rgba(0,229,204,0.35), inset 0 0 40px rgba(0,229,204,0.1); }
}
.cl-logo-ring {
  position: absolute; inset: -9px; border-radius: 30px;
  border: 1.5px solid transparent;
  border-top-color: rgba(0,229,204,0.4);
  border-bottom-color: rgba(0,229,204,0.15);
  animation: cl-ring 7s linear infinite;
}
@keyframes cl-ring { to{ transform: rotate(360deg); } }

.cl-brand-name {
  font-family: 'Orbitron', monospace;
  font-size: 24px; font-weight: 900;
  color: var(--cl-teal); letter-spacing: 3px;
  text-shadow: 0 0 25px rgba(0,229,204,0.5);
  margin-bottom: 5px;
}
.cl-brand-sub {
  font-size: 10.5px; color: var(--cl-muted);
  letter-spacing: 4px; text-transform: uppercase;
}
.cl-brand-portal {
  display: inline-block; margin-top: 12px;
  background: rgba(0,229,204,0.1);
  border: 1px solid rgba(0,229,204,0.25);
  border-radius: 20px; padding: 5px 16px;
  font-size: 10.5px; color: var(--cl-teal);
  letter-spacing: 2px; font-weight: 600;
}

/* Features */
.cl-features { width: 100%; max-width: 320px; }
.cl-feature-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,229,204,0.06);
  font-size: 12px; color: var(--cl-muted);
}
.cl-feature-item:last-child { border-bottom: none; }
.cl-feature-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(0,229,204,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--cl-teal); font-size: 11px; flex-shrink: 0;
}

/* Login Box */
.cl-box {
  width: 100%; max-width: 420px;
  background: rgba(3,13,16,0.92);
  backdrop-filter: blur(28px);
  border: 1px solid var(--cl-border);
  border-radius: 26px; padding: 44px 40px;
  position: relative;
  box-shadow: 0 40px 90px rgba(0,0,0,0.65), inset 0 1px 0 rgba(0,229,204,0.13);
  animation: cl-boxIn 0.75s cubic-bezier(.4,0,.2,1) both;
}
@keyframes cl-boxIn {
  from{ opacity:0; transform:translateY(28px) scale(0.97); }
  to  { opacity:1; transform:translateY(0) scale(1); }
}
.cl-box::before {
  content: ''; position: absolute;
  top: 0; left: 40px; right: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,204,0.55), transparent);
}

/* Corners */
.cl-corner { position: absolute; width: 18px; height: 18px; }
.cl-tl { top:15px; left:15px; border-top:2px solid var(--cl-teal); border-left:2px solid var(--cl-teal); border-radius:4px 0 0 0; }
.cl-tr { top:15px; right:15px; border-top:2px solid var(--cl-teal); border-right:2px solid var(--cl-teal); border-radius:0 4px 0 0; }
.cl-bl { bottom:15px; left:15px; border-bottom:2px solid rgba(0,229,204,0.35); border-left:2px solid rgba(0,229,204,0.35); border-radius:0 0 0 4px; }
.cl-br { bottom:15px; right:15px; border-bottom:2px solid rgba(0,229,204,0.35); border-right:2px solid rgba(0,229,204,0.35); border-radius:0 0 4px 0; }

/* Badge */
.cl-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,229,204,0.08);
  border: 1px solid rgba(0,229,204,0.2);
  border-radius: 20px; padding: 5px 14px;
  width: fit-content; margin-bottom: 20px;
  font-size: 10px; color: var(--cl-teal);
  letter-spacing: 1.5px; font-weight: 600;
}
.cl-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cl-teal);
  box-shadow: 0 0 8px var(--cl-teal);
  animation: cl-pulse 2s infinite;
}
@keyframes cl-pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(1.4);} }

/* Header */
.cl-header { margin-bottom: 28px; }
.cl-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 20px; font-weight: 700;
  color: var(--cl-text); margin-bottom: 7px;
}
.cl-header p { font-size: 12px; color: var(--cl-muted); line-height: 1.65; }

/* Error / Success */
.cl-error {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,77,109,0.09);
  border: 1px solid rgba(255,77,109,0.28);
  border-radius: 10px; padding: 10px 14px;
  font-size: 11.5px; color: #ff4d6d; margin-bottom: 18px;
}
.cl-success {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,255,157,0.09);
  border: 1px solid rgba(0,255,157,0.28);
  border-radius: 10px; padding: 10px 14px;
  font-size: 11.5px; color: #00ff9d; margin-bottom: 18px;
}

/* Form */
.cl-group { margin-bottom: 20px; }
.cl-label {
  display: block; font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cl-muted); margin-bottom: 7px;
  transition: color 0.25s;
}
.cl-input-wrap { position: relative; }
.cl-input {
  width: 100%;
  background: rgba(0,229,204,0.04);
  border: 1px solid rgba(0,229,204,0.14);
  border-radius: 11px;
  padding: 13px 44px;
  font-family: 'Exo 2', sans-serif;
  font-size: 13.5px; color: var(--cl-text);
  outline: none; transition: all 0.28s;
}
.cl-input::placeholder { color: rgba(61,110,106,0.65); }
.cl-input:focus {
  border-color: var(--cl-teal);
  background: rgba(0,229,204,0.06);
  box-shadow: 0 0 0 3px rgba(0,229,204,0.09);
}
.cl-icon-l {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--cl-muted); font-size: 13px;
  transition: color 0.25s;
}
.cl-input-wrap:focus-within .cl-icon-l { color: var(--cl-teal); }
.cl-icon-r {
  position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--cl-muted); font-size: 13px;
  cursor: pointer; transition: color 0.2s;
}
.cl-icon-r:hover { color: var(--cl-teal); }

/* Options */
.cl-options {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 24px;
}
.cl-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cl-check {
  width: 17px; height: 17px;
  border: 1.5px solid rgba(0,229,204,0.28);
  border-radius: 5px; background: rgba(0,229,204,0.05);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.cl-check.on { background: var(--cl-teal); border-color: var(--cl-teal); box-shadow: 0 0 10px rgba(0,229,204,0.35); }
.cl-check i { font-size: 9px; color: #000; display: none; }
.cl-check.on i { display: block; }
.cl-remember span { font-size: 12px; color: var(--cl-muted); }
.cl-forgot { font-size: 11.5px; color: var(--cl-teal); text-decoration: none; opacity: 0.75; }
.cl-forgot:hover { opacity: 1; color: var(--cl-teal); }

/* Button */
.cl-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, rgba(0,229,204,0.88), rgba(0,150,140,0.88));
  border: none; border-radius: 11px;
  font-family: 'Orbitron', monospace;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 2.5px; color: #000;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.28s;
  box-shadow: 0 0 28px rgba(0,229,204,0.25);
}
.cl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0,229,204,0.42);
}
.cl-btn-shine {
  position: absolute; top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: cl-shine 3.5s ease-in-out infinite;
}
@keyframes cl-shine { 0%,100%{ left:-100%; } 50%{ left:150%; } }

/* Security + Footer */
.cl-security {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(0,229,204,0.08);
}
.cl-security i { color: var(--cl-green); font-size: 11px; }
.cl-security span { font-size: 10px; color: var(--cl-muted); letter-spacing: 0.8px; }

.cl-admin-link {
  margin-top: 14px; text-align: center;
  font-size: 10.5px; color: var(--cl-muted);
}
.cl-admin-link a { color: rgba(0,229,204,0.6); text-decoration: none; }
.cl-admin-link a:hover { color: var(--cl-teal); }

.cl-footer {
  margin-top: 12px; text-align: center;
  font-size: 9.5px; color: rgba(61,110,106,0.4);
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
  .cl-left, .cl-divider { display: none; }
  .cl-right { width: 100%; position: relative; height: 100vh; }
  .cl-box { padding: 34px 26px; }
}
@media (max-width: 480px) {
  .cl-box { padding: 26px 20px; border-radius: 18px; }
}