/* ── CloudIngest Employer Dashboard Login ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --cyan:       #00c8f0;
  --cyan-dark:  #0099bb;
  --cyan-glow:  rgba(0, 200, 240, 0.18);
  --navy:       #060f1e;
  --navy-mid:   #0a1628;
  --navy-card:  #0f1f38;
  --border:     rgba(0, 200, 240, 0.16);
  --text:       #e8f4f8;
  --muted:      #7a9ab8;
  --error-red:  #ff4d6d;
  --primary-blue: #00c8f0;
  --dark-blue:  #0a1628;
}

/* ── Reset body for full-page takeover ── */
html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Animated background ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 10% 15%, rgba(0,200,240,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 80%, rgba(0,100,180,0.12) 0%, transparent 60%),
    linear-gradient(160deg, #040c18 0%, #060f1e 50%, #040d1c 100%);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed; inset: -50%; z-index: 0;
  background-image:
    linear-gradient(rgba(0,200,240,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,240,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridScroll 24s linear infinite;
  pointer-events: none;
}
@keyframes gridScroll {
  0%   { transform: translate(0,0); }
  100% { transform: translate(64px,64px); }
}

/* ── Layout ── */
.ci-page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
}

/* ── Left panel ── */
.ci-left {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 64px 56px 64px 72px;
  position: relative; z-index: 1;
}

/* Orbs */
.ci-orb {
  position: fixed; border-radius: 50%;
  filter: blur(90px); opacity: 0.2;
  pointer-events: none; z-index: 0;
}
.ci-orb-1 { width: 360px; height: 360px; background: #00c8f0; top: -100px; left: -80px; animation: floatOrb 9s ease-in-out infinite; }
.ci-orb-2 { width: 280px; height: 280px; background: #0055cc; bottom: -60px; right: -60px; animation: floatOrb 7s ease-in-out infinite reverse; animation-delay: 2s; }
.ci-orb-3 { width: 200px; height: 200px; background: #00c8f0; top: 45%; right: 8%; opacity: 0.10; animation: floatOrb 11s ease-in-out infinite; animation-delay: 4s; }
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.05); }
}

.ci-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,240,0.08);
  border: 1px solid var(--border);
  border-radius: 40px; padding: 6px 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 36px;
}
.ci-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.ci-hero-title {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 800; line-height: 1.18;
  letter-spacing: -0.025em; margin-bottom: 18px;
  color: var(--text);
}
.ci-hero-title span { color: var(--cyan); }

.ci-hero-sub {
  font-size: 15px; font-weight: 400;
  color: var(--muted); line-height: 1.75;
  max-width: 420px; margin-bottom: 48px;
}

.ci-stats {
  display: flex; gap: 36px; margin-bottom: 48px;
}
.ci-stat { display: flex; flex-direction: column; gap: 3px; }
.ci-stat-num { font-size: 26px; font-weight: 800; color: var(--cyan); }
.ci-stat-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.ci-stat-divider { width: 1px; background: var(--border); align-self: stretch; }

.ci-features { display: flex; flex-direction: column; gap: 14px; }
.ci-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--muted);
}
.ci-feature-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(0,200,240,0.09);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}

/* ── Right panel ── */
.ci-right {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 72px 48px 48px;
  position: relative; z-index: 1;
}
.ci-right::before {
  content: '';
  position: absolute;
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,240,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Card ── */
.ci-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(170deg, rgba(16,34,62,0.92) 0%, rgba(10,22,42,0.96) 100%);
  border: 1px solid rgba(0,200,240,0.18);
  border-radius: 28px;
  padding: 26px 38px 22px;
  backdrop-filter: blur(32px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 40px 100px rgba(0,0,0,0.6),
    0 0 80px rgba(0,200,240,0.05);
  position: relative;
  overflow: hidden;
}
/* top shimmer line */
.ci-card::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,240,0.7), transparent);
  border-radius: 1px;
}
/* subtle inner corner glow */
.ci-card::after {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,240,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Logo ── */
.ci-logo-wrap {
  display: flex; justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

/* pulsing ambient glow behind logo */
.ci-logo-wrap::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 220px; height: 140px;
  background: radial-gradient(ellipse, rgba(0,200,240,0.28) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none; z-index: 0;
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* logo container */
.ci-logo-container {
  position: relative; z-index: 1;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(120,180,255,.18), 0 30px 80px -20px rgba(20,110,255,.5); }
  50%       { box-shadow: 0 0 0 2px rgba(120,180,255,.30), 0 30px 100px -16px rgba(20,130,255,.75); }
}

.logo {
  width: 110px;
  height: 110px;
  margin: 16px 0 6px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(120,180,255,.18), 0 30px 80px -20px rgba(20,110,255,.5);
  animation: fadeUp .9s .15s both, glow 5s ease-in-out infinite;
  display: block;
}

/* fallback text logo */
.ci-logo-fallback {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; z-index: 1;
}
.ci-logo-mark {
  width: 52px; height: 52px; border-radius: 13px;
  background: #000;
  border: 1.5px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(0,200,240,0.4));
}
.ci-logo-name {
  font-size: 17px; font-weight: 800; letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--cyan) 0%, #60d4f0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ci-logo-tagline {
  font-size: 9px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase; margin-top: 2px;
}

/* ── Card header text ── */
.ci-card-badge {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, rgba(0,200,240,0.14) 0%, rgba(0,150,200,0.08) 100%);
  border: 1px solid rgba(0,200,240,0.28);
  border-radius: 30px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; color: var(--cyan);
  width: fit-content; margin: 0 auto 10px;
  letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0,200,240,0.10);
}
.ci-card-title {
  font-size: 22px; font-weight: 800;
  text-align: center; color: #f0f8ff;
  margin-bottom: 5px; letter-spacing: -0.02em;
}
.ci-card-sub {
  font-size: 12.5px; color: var(--muted);
  text-align: center; margin-bottom: 14px; line-height: 1.55;
}

/* thin divider */
.ci-form-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,240,0.12), transparent);
  margin-bottom: 16px;
}

/* ── Form labels ── */
.ci-card .form-label,
.ci-card label {
  display: block; font-size: 11.5px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 8px;
}

/* ── jQuery validate error labels — override field-label styles ── */
.ci-card label.error,
.ci-forgot-card label.error {
  color: #ff7090 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-bottom: 0 !important;
  margin-top: 4px !important;
  display: block !important;
}
/* Icon turns red when sibling input is invalid */
.ci-card .ci-input-wrap:has(input.error) .ci-input-icon,
.ci-card .ci-input-wrap:has(input.is-invalid) .ci-input-icon,
.ci-forgot-card .ci-forgot-input-wrap:has(input.error) .ci-input-icon,
.ci-forgot-card .ci-forgot-input-wrap:has(input.is-invalid) .ci-input-icon {
  color: rgba(255,77,109,0.8) !important;
}

/* ── Inputs ── */
.ci-card .form-control,
.ci-card input[type="text"],
.ci-card input[type="password"],
.ci-card input[type="email"] {
  width: 100%;
  background: rgba(6,15,30,0.75) !important;
  border: 1px solid rgba(0,200,240,0.14) !important;
  border-radius: 11px !important;
  padding: 13px 14px 13px 40px !important;
  font-size: 14px !important; color: var(--text) !important;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: auto !important;
}
.ci-card .form-control::placeholder,
.ci-card input::placeholder { color: rgba(122,154,184,0.45) !important; }
.ci-card .form-control:focus,
.ci-card input:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(0,200,240,0.10) !important;
  background: rgba(6,15,30,0.9) !important;
}
.ci-card .form-control.is-invalid,
.ci-card input.is-invalid,
.ci-card .form-control.error,
.ci-card input.error,
.ci-forgot-card .form-control.is-invalid,
.ci-forgot-card input.is-invalid,
.ci-forgot-card .form-control.error,
.ci-forgot-card input.error {
  border-color: rgba(255,77,109,0.7) !important;
  box-shadow: 0 0 0 3px rgba(255,77,109,0.10) !important;
  background-image: none !important;
  padding-right: 14px !important;
}
/* Placeholder text turns red while the field is invalid */
.ci-card input.error::placeholder,
.ci-card .form-control.error::placeholder,
.ci-forgot-card input.error::placeholder,
.ci-forgot-card .form-control.error::placeholder {
  color: rgba(255,77,109,0.6) !important;
}
/* Suppress browser/Bootstrap :invalid on untouched required fields.
   Applies to all CI containers — login card, signup card, forgot-password card */
.ci-card .form-control:invalid:not(.error):not(.is-invalid),
.ci-card input:invalid:not(.error):not(.is-invalid),
.ci-forgot-card input:invalid:not(.error):not(.is-invalid),
input.form-control:invalid:not(.error):not(.is-invalid) {
  border-color: rgba(0,200,240,0.14) !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* input icon prefix */
.ci-input-wrap { position: relative; }
.ci-input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 14px; pointer-events: none; z-index: 2;
}

/* password eye button */
.ci-card .eye-dv,
.ci-card .password-wrapper .eye-dv {
  position: absolute !important; right: 10px !important;
  top: 50% !important; transform: translateY(-50%) !important;
  background: transparent !important; border: none !important;
  color: var(--muted) !important; padding: 8px !important;
  cursor: pointer !important; z-index: 10 !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  width: 34px !important; height: 34px !important;
}
.ci-card .eye-dv:hover { color: var(--cyan) !important; }
.ci-card .eye-dv i { font-size: 16px !important; }
.ci-card .password-wrapper { position: relative; display: flex; align-items: center; }
.ci-card .password-wrapper input { padding-right: 50px !important; width: 100%; flex: 1; }

/* ── Row between (forgot + remember) ── */
.ci-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ci-remember {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px !important; color: var(--muted) !important;
  cursor: pointer; user-select: none; text-transform: none !important; letter-spacing: 0 !important;
}
.ci-remember input[type="checkbox"] {
  accent-color: var(--cyan); width: 15px; height: 15px; cursor: pointer;
  flex-shrink: 0;
}
.ci-forgot {
  font-size: 13px; color: var(--cyan) !important; text-decoration: none; font-weight: 500;
  transition: opacity 0.2s;
}
.ci-forgot:hover { opacity: 0.75; text-decoration: none !important; }

/* ── Submit button ── */
.ci-card .login-btn {
  width: 100%;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 60%, #007aaa 100%) !important;
  border: none !important; border-radius: 14px !important;
  padding: 15px !important;
  font-size: 15px !important; font-weight: 700 !important;
  color: #03111e !important; cursor: pointer;
  letter-spacing: 0.03em;
  transition: transform 0.18s, box-shadow 0.22s !important;
  box-shadow:
    0 4px 20px rgba(0,200,240,0.35),
    0 1px 0 rgba(255,255,255,0.25) inset !important;
  position: relative; overflow: hidden;
  font-family: 'Inter', sans-serif !important;
  display: block;
}
/* shimmer sweep on hover */
.ci-card .login-btn::before {
  content: '';
  position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.ci-card .login-btn:hover::before { left: 130%; }
.ci-card .login-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 8px 30px rgba(0,200,240,0.48),
    0 1px 0 rgba(255,255,255,0.25) inset !important;
}
.ci-card .login-btn:active { transform: translateY(0) !important; }
.ci-card .login-btn .fa-spinner { color: #03111e; }

/* ── Signup row ── */
.ci-signup-row {
  text-align: center; margin-top: 10px;
}
.ci-signup-btn {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; justify-content: center;
  background: transparent;
  border: 1px solid rgba(0,200,240,0.25);
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--cyan) !important; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}
.ci-signup-btn:hover {
  background: rgba(0,200,240,0.07);
  border-color: rgba(0,200,240,0.45);
  text-decoration: none !important;
  transform: translateY(-1px);
  color: var(--cyan) !important;
}
.ci-signup-btn i { font-size: 13px; }

/* ── Error alert ── */
.ci-card .pp-err-sec { margin-bottom: 16px; }
.ci-card .pp-err-sec .alert {
  background: rgba(255,77,109,0.10) !important;
  border: 1px solid rgba(255,77,109,0.3) !important;
  color: #ffb3c0 !important;
  border-radius: 10px !important;
  font-size: 13px;
}

/* ── Help box ── */
.ci-card .alert-notify {
  background: rgba(0,200,240,0.06) !important;
  border: 1px solid var(--border) !important;
  color: var(--muted) !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
.ci-card .alert-notify .alert-link { color: var(--cyan) !important; }

/* ── Bootstrap overrides ── */
.ci-card .mb-4 { margin-bottom: 12px !important; }

/* ── Bottom footer ── */
.ci-footer {
  grid-column: 1 / -1;
  position: relative; z-index: 1;
  padding: 10px 72px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
  border-top: 1px solid rgba(0,200,240,0.07);
  background: rgba(4,12,24,0.6);
  backdrop-filter: blur(12px);
}
.ci-footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.ci-footer a:hover { color: var(--cyan); }
.ci-footer-links { display: flex; gap: 24px; }

/* ── Shake animation (kept for JS) ── */
.shake-animation {
  animation: shake 0.5s ease-in-out;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .ci-page { grid-template-columns: 1fr; }
  .ci-left  { display: none; }
  .ci-right { min-height: 100vh; padding: 40px 24px; }
  .ci-footer { padding: 16px 24px; flex-direction: column; gap: 10px; text-align: center; }
  .ci-footer-links { justify-content: center; }
}
