/* ==========================================
   PRODUCTION SECURE GATEWAY SPLIT-SCREEN LAYOUT
   ========================================== */

/* Remove default browser margins and force dark background to prevent white space at bottom */
*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #050811;
  height: 100vh;
  overflow: hidden;
}

/* Main Split Container */
.erp-login-split-container {
  display: flex;
  height: 100vh;
  width: 100%;
  background-color: #050811;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  position: relative;
}

/* ==========================================
   LEFT PANEL: HIGH-TECH TELEMETRY DISPLAY
   ========================================== */
.erp-login-visual-panel {
  width: 55%;
  background: linear-gradient(135deg, #090d16 0%, #050811 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  position: relative;
  overflow: hidden;
}

/* Cosmic Dynamic Mesh Overlay */
.erp-login-visual-panel::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.erp-login-visual-panel::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.erp-login-visual-content {
  max-width: 520px;
  position: relative;
  z-index: 10;
}

/* Floating "M" branding */
.erp-login-visual-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md, 12px);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 32px;
  box-shadow: none;
  margin: 0 0 32px 0;
  animation: float-logo 4s ease-in-out infinite;
}

@keyframes float-logo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.erp-login-visual-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ffffff 0%, #a5b4fc 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.erp-login-visual-desc {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Interactive Telemetry Panel mock */
.erp-login-visual-stats {
  display: flex;
  gap: 24px;
}

.erp-login-visual-stat-card {
  flex: 1;
  background: rgba(15, 22, 38, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md, 12px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.erp-login-visual-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-top-left-radius: var(--radius-md, 12px);
  border-top-right-radius: var(--radius-md, 12px);
  background: linear-gradient(90deg, #6366f1, transparent);
}

.erp-login-visual-stat-card:last-child::before {
  background: linear-gradient(90deg, #06b6d4, transparent);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #f8fafc;
}

.stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.erp-login-visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

/* ==========================================
   RIGHT PANEL: OPERATOR LOGIN FORM PANEL
   ========================================== */
.erp-login-form-panel {
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #050811;
  position: relative;
  box-sizing: border-box;
}

.erp-login-card {
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Gateway Form Title */
.erp-login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  /* Strip standard hover shadows */
  text-align: center;
}

.erp-login-subtitle {
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 36px;
  text-align: center;
}

/* Custom form components */
.erp-form-group {
  margin-bottom: 24px;
}

.erp-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.erp-login-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 8px);
  padding: 0 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-login-input-wrapper:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.erp-login-input-wrapper svg {
  width: 18px;
  height: 18px;
  color: #ffffff !important;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.erp-login-input-wrapper:focus-within svg {
  color: #06b6d4;
}

.erp-login-input {
  background: none;
  border: none;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 14px 12px;
  width: 100%;
  outline: none;
}

.erp-login-input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
}

.erp-login-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
}

.erp-login-input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
}

.erp-login-input::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
}

.erp-login-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
}

input.erp-login-input:focus,
input#user_login:focus,
input#user_pass:focus,
.erp-login-input:focus,
.erp-login-input:active,
.erp-login-input:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #f8fafc !important;
}

/* Fix browser autofill styling breaking the dark theme */
.erp-login-input:-webkit-autofill,
.erp-login-input:-webkit-autofill:hover,
.erp-login-input:-webkit-autofill:focus,
.erp-login-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 10000px #0f121a inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  background-color: transparent !important;
}

/* Isolate internal selectors so they don't break standard webkit rules if unsupported */
.erp-login-input:-internal-autofill-selected,
.erp-login-input:-internal-autofill-previewed {
  -webkit-box-shadow: 0 0 0 10000px #0f121a inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  background-color: transparent !important;
}

.erp-login-input::placeholder {
  color: #334155;
}

/* Submit auth button */
.erp-login-btn {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.erp-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
  filter: brightness(1.15);
}

.erp-login-btn:active {
  transform: translateY(0);
}

/* Alerts Banner */
.erp-login-error-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm, 8px);
  color: #fca5a5;
  font-size: 13px;
  padding: 14px 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  line-height: 1.5;
}

/* ==========================================
   GUEST (LOGGED-OUT) OVERRIDES
   ========================================== */
body:not(.logged-in) {
  overflow: hidden !important;
}

body:not(.logged-in) .erp-main {
  margin-left: 0 !important;
  width: 100% !important;
}

body:not(.logged-in) .erp-content {
  padding: 0 !important;
}

/* ==========================================
   RESPONSIVE LAYOUT OVERRIDES
   ========================================== */
@media (max-width: 992px) {
  .erp-login-visual-panel {
    display: none;
    /* Hide high-tech visual panel on mobile/tablet viewports */
  }

  .erp-login-form-panel {
    width: 100%;
    padding: 32px;
  }

  .erp-login-card {
    max-width: 440px;
  }
}