/* ==========================================================================
   OfficePulse - Modern Executive Login Experience
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --op-navy-950: #070a13;
  --op-navy-900: #0b1120;
  --op-navy-800: #0f172a;
  --op-navy-700: #1e293b;
  --op-indigo-600: #4f46e5;
  --op-indigo-500: #6366f1;
  --op-indigo-400: #818cf8;
  --op-cobalt-500: #2563eb;
  --op-cyan-400: #38bdf8;
  --op-slate-100: #f1f5f9;
  --op-slate-200: #e2e8f0;
  --op-slate-400: #94a3b8;
  --op-slate-600: #475569;
  --op-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --op-font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body.op-login-body {
  font-family: var(--op-font-main) !important;
  background-color: var(--op-navy-950);
  margin: 0;
  padding: 0;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Orbs */
.op-ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.op-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: opOrbFloat 18s ease-in-out infinite alternate;
}

.op-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.8) 0%, rgba(37, 99, 235, 0.4) 60%, transparent 80%);
  top: -120px;
  left: -80px;
  animation-duration: 22s;
}

.op-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.6) 0%, rgba(79, 70, 229, 0.3) 50%, transparent 80%);
  bottom: -150px;
  left: 25%;
  animation-duration: 26s;
  animation-delay: -5s;
}

.op-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, rgba(168, 85, 247, 0.3) 60%, transparent 80%);
  top: 30%;
  right: -100px;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes opOrbFloat {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(60px, 40px) scale(1.1) rotate(45deg); }
  100% { transform: translate(-40px, 80px) scale(0.95) rotate(-30deg); }
}

/* Background Animated Grid */
.op-grid-pattern {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Main Layout Wrapper */
.op-login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.op-login-card-container {
  width: 100%;
  max-width: 1200px;
  min-height: 640px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 80px rgba(79, 70, 229, 0.15);
  display: flex;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.op-login-card-container:hover {
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(99, 102, 241, 0.2),
    0 0 100px rgba(79, 70, 229, 0.22);
}

/* ==========================================================================
   LEFT SIDE: Brand Showcase & Telemetry
   ========================================================================== */
.op-brand-panel {
  flex: 1.25;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Ambient glow accent behind emblem */
.op-brand-panel::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.op-brand-header {
  position: relative;
  z-index: 2;
}

.op-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--op-indigo-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.op-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: opBlink 2s infinite ease-in-out;
}

@keyframes opBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.op-brand-title {
  font-family: var(--op-font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
}

.op-brand-title span {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.op-brand-desc {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0;
}

/* Center Interactive Telemetry Card */
.op-telemetry-card {
  position: relative;
  z-index: 2;
  margin: 36px 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4);
  animation: opCardFloat 7s ease-in-out infinite alternate;
}

@keyframes opCardFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.op-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.op-telemetry-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.op-telemetry-status {
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Animated SVG Pulse Wave */
.op-pulse-wave-box {
  width: 100%;
  height: 54px;
  margin: 10px 0;
  position: relative;
  overflow: hidden;
}

.op-pulse-svg {
  width: 100%;
  height: 100%;
}

.op-pulse-path-base {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
  fill: none;
}

.op-pulse-path-glow {
  stroke: url(#opPulseGradient);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 80 400;
  animation: opPulseRun 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

@keyframes opPulseRun {
  from { stroke-dashoffset: 480; }
  to { stroke-dashoffset: 0; }
}

/* Telemetry Metrics Grid */
.op-telemetry-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.op-metric-item {
  display: flex;
  flex-direction: column;
}

.op-metric-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.op-metric-value {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2px;
}

.op-metric-value.indigo { color: #818cf8; }
.op-metric-value.emerald { color: #34d399; }
.op-metric-value.cyan { color: #38bdf8; }

/* Interactive Feature Chips */
.op-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.op-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.op-chip:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

.op-chip i {
  color: var(--op-indigo-400);
}

/* ==========================================================================
   RIGHT SIDE: Authentication Form Panel
   ========================================================================== */
.op-auth-panel {
  flex: 1;
  background: #ffffff;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.op-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.op-auth-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.op-visitor-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--op-indigo-600);
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  text-decoration: none;
  transition: all 0.25s ease;
}

.op-visitor-link:hover {
  color: #ffffff;
  background: var(--op-indigo-600);
  border-color: var(--op-indigo-600);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Auth Heading */
.op-auth-title {
  font-family: var(--op-font-display);
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
}

.op-auth-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 28px 0;
}

/* Form Styles */
.op-form-group {
  margin-bottom: 22px;
  position: relative;
}

.op-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.op-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.op-input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  transition: color 0.25s ease;
}

.op-input {
  width: 100%;
  height: 50px;
  padding: 10px 44px 10px 46px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--op-font-main);
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.op-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.op-input:focus {
  background: #ffffff;
  border-color: var(--op-indigo-600);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.op-input:focus + .op-input-icon,
.op-input:focus ~ .op-input-icon {
  color: var(--op-indigo-600);
}

/* Password Toggle Eye Button */
.op-toggle-password {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.op-toggle-password:hover {
  color: #475569;
  background: rgba(0, 0, 0, 0.04);
}

/* Checkbox & Forgot Password */
.op-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 26px;
}

.op-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.op-custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.2s ease;
  margin: 0;
}

.op-custom-checkbox:checked {
  background-color: var(--op-indigo-600);
  border-color: var(--op-indigo-600);
}

.op-custom-checkbox:checked::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
  color: #ffffff;
}

.op-custom-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.op-badge-pill {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Submit Button with Shimmer & Animated Arrow */
.op-submit-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--op-font-main);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.op-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.op-submit-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(79, 70, 229, 0.55);
}

.op-submit-btn:hover::before {
  left: 150%;
}

.op-submit-btn:active {
  transform: translateY(0);
}

.op-submit-btn i {
  transition: transform 0.25s ease;
}

.op-submit-btn:hover i {
  transform: translateX(4px);
}

/* Security & Encryption Footer */
.op-auth-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

.op-security-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 500;
}

.op-security-tag i {
  color: #10b981;
}

/* Validation Feedback */
.op-error-msg {
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
  .op-login-card-container {
    flex-direction: column;
    max-width: 580px;
  }
  
  .op-brand-panel {
    padding: 40px 32px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .op-telemetry-card {
    display: none;
  }
  
  .op-auth-panel {
    padding: 40px 32px;
  }
}

@media (max-width: 480px) {
  .op-login-wrapper {
    padding: 12px 10px;
  }
  
  .op-brand-panel {
    padding: 28px 20px;
  }
  
  .op-brand-title {
    font-size: 28px;
  }
  
  .op-auth-panel {
    padding: 28px 20px;
  }
  
  .op-auth-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
