/* Premium Wide Split Layout Page Styles - WoW factor cinematic layout */
.register-layout-container {
  max-width: 1550px;
  margin: 80px auto 0;
  padding: 60px 40px 100px;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.register-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 72px;
  width: 100%;
  align-items: start;
}

/* ─── Info Sidebar ─────────────────────────────────── */
.info-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.text-cyan {
  color: var(--accent-cyan);
}
.text-emerald {
  color: var(--accent-emerald);
}
.text-danger {
  color: #ef4444;
}

/* ─── Device HUD Panel ──────────────────────────────── */
.device-hud-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--grid-line-color);
  padding: 28px 28px 0;
  position: relative;
  overflow: hidden;
}

.device-hud-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-cyan),
    transparent
  );
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: device-hud-scan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes device-hud-scan {
  0% {
    top: 0%;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.wizard-actions.dual-actions {
  grid-template-columns: 200px 1fr !important;
}

#btnBackStep {
  width: 100% !important;
}

.device-hud-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.device-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.device-hud-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  opacity: 0.8;
}

.device-hud-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-blink 2s ease-in-out infinite;
}

@keyframes pulse-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.device-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
}

.device-hud-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.device-hud-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  text-align: right;
  word-break: break-all;
}

.hud-loading {
  color: var(--text-muted);
  font-style: italic;
  animation: pulse-blink 1.5s ease-in-out infinite;
}

.device-hud-divider {
  height: 1px;
  background: var(--grid-line-color);
  margin: 4px 0;
  opacity: 0.5;
}

.device-hud-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  margin-top: 8px;
  border-top: 1px dashed var(--grid-line-color);
}

.device-hud-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  flex-shrink: 0;
}

.device-hud-status-txt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent-emerald);
}

/* ─── Enroll Info Panel ─────────────────────────────── */
.enroll-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enroll-info-header {
  border-left: 2px solid var(--accent-cyan);
  padding-left: 14px;
}

.enroll-deadline-banner {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(15, 23, 42, 0.1)),
    rgba(255, 255, 255, 0.02);
}

.enroll-deadline-pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.enroll-deadline-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.enroll-closed-banner {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(15, 23, 42, 0.1)),
    rgba(255, 255, 255, 0.02);
}

.enroll-closed-pill,
.registration-lock-pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.enroll-closed-copy,
.registration-lock-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.registration-closed-panel {
  display: grid;
  gap: 20px;
  padding: 40px;
  background: rgba(6, 6, 22, 0.4);
  border: 1px solid var(--grid-line-color);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.registration-closed-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.enroll-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.enroll-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.enroll-track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.enroll-track-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--grid-line-color);
  transition:
    border-color 0.25s,
    background 0.25s;
}

.enroll-track-item:hover {
  border-color: rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.02);
}

.enroll-track-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: bold;
  padding: 4px 8px;
  border: 1px solid;
  flex-shrink: 0;
}

.enroll-track-badge.sb {
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.06);
}
.enroll-track-badge.oa {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}
.enroll-track-badge.zf {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.enroll-track-name {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.enroll-track-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Form Container Panel Styling (Cinematic Spacious card) */
.form-container-main {
  position: relative;
  background: var(--bg-black);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 45px rgba(6, 182, 212, 0.15);
}

/* Subtle adaptive glow */
.form-container-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--accent-cyan),
    var(--accent-emerald)
  );
}

.form-card-content {
  padding: 56px;
  position: relative;
  z-index: 10;
}

.registration-form-panel {
  position: relative;
}

.registration-form-panel.is-locked {
  opacity: 0.88;
}

.registration-lock-banner {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(15, 23, 42, 0.1)),
    rgba(255, 255, 255, 0.02);
}

/* 2-Column Fields Grid Layout */
.fields-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  align-items: start;
}

/* Form fields styling */
.required-star {
  color: #ef4444;
  font-weight: bold;
  margin-left: 2px;
}

.form-group-ms {
  margin-bottom: 24px;
  width: 100%;
}

.field-label-ms {
  display: block;
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.field-desc-ms {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Custom styled inputs */
.form-group-ms input[type="text"],
.form-group-ms input[type="email"],
.form-group-ms input[type="tel"],
.form-group-ms input[type="date"],
.form-group-ms select {
  width: 100% !important;
  background: var(--bg-secondary);
  border: 1px solid var(--grid-line-color);
  color: var(--text-primary);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all 0.25s ease;
  border-radius: 0;
  outline: none;
  box-sizing: border-box;
}

.form-group-ms input:focus {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.02);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

/* OCR verification badge */
.ocr-badge-status {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: bold;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 8px;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Uploader dropzone custom styling */
.uploader-dropzone {
  position: relative;
  overflow: hidden;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--grid-line-color);
  background: rgba(2, 2, 14, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.uploader-dropzone:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.02);
}

.uploader-dropzone.dragover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.03);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.uploader-icon {
  font-size: 1.6rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  transition: color 0.25s;
}

.uploader-dropzone:hover .uploader-icon {
  color: var(--accent-cyan);
}

.uploader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.uploader-primary {
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.uploader-secondary {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.uploader-status {
  width: 100%;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 182, 212, 0.05);
  border-top: 1.5px solid var(--accent-cyan);
}

.uploader-file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 70%;
}

.file-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-clear-file {
  background: none;
  border: none;
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-clear-file:hover {
  opacity: 0.8;
}

/* Laser scanner visual overlay inside dropzone */
.ocr-scanning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 2, 14, 0.94);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.ocr-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-cyan),
    transparent
  );
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: ocr-sweep 2s infinite ease-in-out;
}

.ocr-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  margin-top: 10px;
  text-shadow: 0 0 4px rgba(6, 182, 212, 0.3);
}

@keyframes ocr-sweep {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

.member-section-header {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  border-left: 2px solid var(--accent-cyan);
  padding-left: 10px;
  font-weight: bold;
}

/* Error and Success input states */
.form-group-ms.has-error input {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.02) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.1) !important;
}

.form-group-ms.has-success input {
  border-color: var(--accent-emerald) !important;
  background: rgba(16, 185, 129, 0.02) !important;
}

.form-group-ms,
.payload-upload-section {
  position: relative;
}

.error-text {
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 6px;
  display: none;
}

/* Responsive styling */
@media (max-width: 1200px) {
  .register-layout-container {
    padding: 40px 24px 80px;
  }
  .register-grid {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .register-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .info-sidebar {
    position: static;
  }

  .fields-grid-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 576px) {
  .register-layout-container {
    padding: 20px 16px 60px;
  }
  .form-card-content {
    padding: 32px 20px;
  }
  .wizard-actions.dual-actions {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .wizard-actions.dual-actions .btn {
    width: 100% !important;
    justify-content: center;
  }
}
