/* NP EDV Custom Login Skin — update-safe, extends elastic */

body.task-login {
  background: #0d1117 !important;
  overflow: hidden;
}
body.task-login::before {
  content: ''; position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 48px);
  pointer-events: none; z-index: 0;
}
body.task-login::after {
  content: ''; position: fixed; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(52,152,219,0.7) 50%, transparent);
  box-shadow: 0 0 8px rgba(52,152,219,0.4);
  animation: rc-scan 6s ease-in-out infinite; z-index: 1; pointer-events: none;
}
@keyframes rc-scan { 0%{top:-2px;opacity:0} 5%{opacity:1} 95%{opacity:1} 100%{top:100%;opacity:0} }

.rc-scan2 {
  position: fixed; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(46,204,113,0.6) 50%, transparent);
  box-shadow: 0 0 8px rgba(46,204,113,0.3);
  animation: rc-scan 6s ease-in-out infinite 3s; z-index: 1; pointer-events: none;
}
.rc-topo { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* Racks */
.rc-rack { position: fixed; top: 24px; bottom: 56px; width: 60px; opacity: 0.2; z-index: 1; pointer-events: none; }
.rc-rack-left { left: 16px; } .rc-rack-right { right: 16px; }
.rc-rack-body { width: 100%; height: 100%; border: 1px solid rgba(52,152,219,0.4); border-radius: 3px; padding: 4px; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; }
.rc-ru { width: 100%; height: 14px; background: rgba(0,0,0,0.4); border: 1px solid rgba(52,152,219,0.3); border-radius: 2px; display: flex; align-items: center; padding: 0 4px; gap: 3px; }
.rc-ru.b { border-color: rgba(52,152,219,0.5); } .rc-ru.g { border-color: rgba(46,204,113,0.5); } .rc-ru.r { border-color: rgba(231,76,60,0.5); }
.rc-led { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
.rc-led.g { background: #2ecc71; box-shadow: 0 0 4px #2ecc71; }
.rc-led.b { background: #3498db; box-shadow: 0 0 4px #3498db; }
.rc-led.r { background: #e74c3c; box-shadow: 0 0 4px #e74c3c; animation: rc-blink-r 0.8s step-start infinite; }
@keyframes rc-blink-r { 0%,100%{opacity:1} 50%{opacity:0.1} }
.rc-bar { flex: 1; height: 3px; border-radius: 1px; }
.rc-bar.b { background: repeating-linear-gradient(90deg, rgba(52,152,219,0.5) 0, rgba(52,152,219,0.5) 4px, transparent 4px, transparent 7px); }
.rc-bar.g { background: repeating-linear-gradient(90deg, rgba(46,204,113,0.5) 0, rgba(46,204,113,0.5) 4px, transparent 4px, transparent 7px); }

/* Status bar */
.rc-statusbar { position: fixed; bottom: 0; left: 0; right: 0; height: 26px; background: rgba(0,0,0,0.6); border-top: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; padding: 0 14px; gap: 14px; z-index: 10; overflow: hidden; }
.rc-sdot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.rc-sdot.g { background: #2ecc71; animation: rc-pulse-dot 2s ease-in-out infinite; color: #2ecc71; }
.rc-sdot.b { background: #3498db; animation: rc-pulse-dot 2s ease-in-out infinite 1s; color: #3498db; }
@keyframes rc-pulse-dot { 0%,100%{box-shadow:0 0 0 0 currentColor;opacity:1} 50%{box-shadow:0 0 6px 2px currentColor;opacity:.8} }
.rc-stxt { font-size: 10px; color: rgba(255,255,255,0.22); letter-spacing: 0.07em; font-family: monospace; white-space: nowrap; }
.rc-ticker-wrap { flex: 1; overflow: hidden; }
.rc-ticker { display: inline-block; white-space: nowrap; font-size: 10px; color: rgba(255,255,255,0.18); font-family: monospace; letter-spacing: 0.05em; animation: rc-ticker 22s linear infinite; }
@keyframes rc-ticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* Layout */
body.task-login #layout { background: transparent !important; }
body.task-login #layout-content { background: transparent !important; position: relative; z-index: 5; }
body.task-login #logo { display: none !important; }

/* ── THE CARD: #login-form is the full card including logos ── */
body.task-login #login-form {
  background: rgba(13,17,27,0.95) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 16px 48px rgba(0,0,0,0.7) !important;
  padding: 24px 24px 20px !important;
  max-width: 380px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 auto !important;
  width: 90% !important;
  box-sizing: border-box !important;
}

/* Logos inside the card */
.rc-logos {
  display: flex; align-items: stretch; gap: 8px;
  margin-bottom: 12px;
}
.rc-logo-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 7px; padding: 12px 8px; flex: 1; gap: 6px;
}
.rc-logo-badge.cc { background: rgba(25,60,120,0.4); border: 1px solid rgba(52,152,219,0.45); }
.rc-logo-badge.np { background: rgba(15,80,60,0.4); border: 1px solid rgba(29,158,117,0.45); }
.rc-badge-name { font-size: 11px; font-weight: 700; color: #fff; text-align: center; line-height: 1.5; }
.rc-badge-name .g { color: #27ae60; } .rc-badge-name .b { color: #3498db; } .rc-badge-name .o { color: #e67e22; }
.rc-badge-sub { font-size: 8px; color: rgba(255,255,255,0.3); letter-spacing: 0.1em; text-transform: uppercase; }
.rc-np-main { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.05em; }

/* Tagline divider */
.rc-tagline {
  text-align: center; font-size: 9px; color: rgba(255,255,255,0.22);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Form table */
body.task-login #login-form table,
body.task-login #login-form tbody { display: block !important; }
body.task-login #login-form tr { display: block !important; margin-bottom: 16px !important; }
body.task-login #login-form td { display: block !important; width: 100% !important; box-sizing: border-box !important; }
/* Restore td.title (elastic hides it via inline style) and show label prominently */
body.task-login #login-form td.title { display: block !important; margin-bottom: 6px !important; }
body.task-login #login-form td.title label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.7) !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}
/* Hide icon prepend, full-width input */
body.task-login #login-form .input-group-prepend { display: none !important; }
body.task-login #login-form .input-group { display: block !important; }

body.task-login input[type=text],
body.task-login input[type=password],
body.task-login input[type=email] {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 6px !important;
  color: rgba(180,195,210,0.7) !important;
  width: 100% !important; box-sizing: border-box !important;
  padding: 10px 12px !important; font-size: 14px !important;
  transition: border-color .2s, box-shadow .2s;
}
body.task-login input[type=text]:focus,
body.task-login input[type=password]:focus {
  border-color: rgba(52,152,219,0.55) !important;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.12) !important;
  outline: none !important;
}

/* Button */
body.task-login .formbuttons { margin-top: 6px !important; }
body.task-login #rcmloginsubmit {
  background: rgba(15,110,86,0.85) !important;
  border: 1px solid rgba(29,158,117,0.5) !important;
  border-radius: 6px !important; color: #fff !important;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 12px !important; font-weight: 600 !important;
  width: 100% !important; padding: 11px !important;
  transition: background .2s;
}
body.task-login #rcmloginsubmit:hover { background: rgba(20,130,100,0.95) !important; }

/* Footer */
body.task-login #login-footer { color: rgba(255,255,255,0.2) !important; font-size: 10px; text-align: center; margin-top: 14px; letter-spacing: 0.04em; }
body.task-login #login-footer a { color: rgba(52,152,219,0.5) !important; }

/* ── Card wrapper (logos + form as one unit) ── */
#rc-card-wrapper {
  margin: 0 auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  width: 90%;
  max-width: 360px;
  background: rgba(13,17,27,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 16px 48px rgba(0,0,0,0.7);
  padding: 22px 22px 18px;
  box-sizing: border-box;
}

/* Reset form card styling — now the wrapper is the card */
body.task-login #login-form {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  top: auto !important;
  transform: none !important;
  margin: 0 !important;
  position: static !important;
}

/* Vertical centering fix */
body.task-login #layout-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
}
#rc-card-wrapper {
  position: static !important;
  top: auto !important;
  transform: none !important;
  margin: auto !important;
}

/* Single badge — centered */
body.task-login .rc-logos { justify-content: center; }
body.task-login .rc-logo-badge.cc { flex: none; width: 100%; }
