/* ============================================================
   NORAKLE CLOUD REGISTRATION & PROVISIONING PLATFORM
   Design System: Extracted from Norak Technologies (noraktech.com)
   Typography: Clash Display (Headings) + Satoshi (Body)
   Colors: #1E5BFF (Primary Blue), #E53935 (Accent Red), #060912 (Dark Canvas)
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@700,600,500&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@900,700,500,400,300&display=swap');

:root, [data-bs-theme="light"] {
  --primary: #1E5BFF;
  --primary-hover: #1648d8;
  --primary-glow: rgba(30, 91, 255, 0.25);
  --accent: #E53935;
  --accent-glow: rgba(229, 57, 53, 0.2);
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --surface: #f1f5f9;
  --surface-hover: #e2e8f0;
  --text-main: #080C14;
  --text-muted: #64748b;
  --border-color: rgba(0, 0, 0, 0.08);
  --grid-color: rgba(0, 0, 0, 0.035);
  --navbar-bg: rgba(255, 255, 255, 0.88);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --card-shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] {
  --primary: #1E5BFF;
  --primary-hover: #3b74ff;
  --primary-glow: rgba(30, 91, 255, 0.35);
  --accent: #E53935;
  --accent-glow: rgba(229, 57, 53, 0.25);
  --bg-main: #060912;
  --card-bg: #0e1425;
  --surface: #111827;
  --surface-hover: #1a2236;
  --text-main: #f0f4ff;
  --text-muted: #8fa3c0;
  --border-color: rgba(255, 255, 255, 0.08);
  --grid-color: rgba(255, 255, 255, 0.028);
  --navbar-bg: rgba(6, 9, 18, 0.9);
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-border: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 56px 56px;
  min-height: 100vh;
  margin: 0;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Clash Display', 'Satoshi', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

/* ─── Glowing Orbs Background ─── */
.blur-orb-1 {
  position: fixed;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(30, 91, 255, 0.12) 0%, transparent 70%);
  filter: blur(100px);
  top: -150px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blur-orb-2 {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.08) 0%, transparent 70%);
  filter: blur(100px);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Navbar ─── */
.header-nav {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(30, 91, 255, 0.08);
  border: 1px solid rgba(30, 91, 255, 0.2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.theme-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.theme-toggle-btn:hover {
  background: var(--surface-hover);
  transform: scale(1.05);
}

/* ─── Hero Left Column ─── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #6C47FF 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}

.feature-pill:hover {
  border-color: rgba(30, 91, 255, 0.3);
  transform: translateX(4px);
}

.feature-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30, 91, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ─── Main Registration Card ─── */
.register-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.register-card-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(30, 91, 255, 0.03) 0%, transparent 100%);
}

.register-card-body {
  padding: 32px;
}

/* ─── Step Indicator ─── */
.step-indicator-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.step-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.step-item.active .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.step-item.completed .step-circle {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
}

.step-item.active .step-label {
  color: var(--text-main);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 4px;
  transition: background 0.3s ease;
}

.step-connector.completed {
  background: #10b981;
}

/* ─── Form Inputs ─── */
.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .req {
  color: var(--accent);
}

.form-control, .form-select {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-main);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 0 0 4px var(--primary-glow);
  outline: none;
}

.input-prefix-group {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  font-family: monospace;
}

.input-prefix-group .form-control {
  padding-left: 56px;
}

/* ─── Product Selection Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.product-item-card {
  border: 1.5px solid var(--border-color);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.product-item-card:hover {
  border-color: rgba(30, 91, 255, 0.4);
  transform: translateY(-2px);
  background: var(--surface-hover);
}

.product-item-card.selected {
  border-color: var(--primary);
  background: rgba(30, 91, 255, 0.06);
  box-shadow: 0 8px 24px rgba(30, 91, 255, 0.12);
}

.product-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30, 91, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.2s;
}

.product-item-card.selected .product-icon-wrap {
  background: var(--primary);
  color: #ffffff;
}

.product-check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.2s ease;
}

.product-item-card.selected .product-check-box {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.product-name {
  font-family: 'Clash Display', 'Satoshi', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ─── Buttons ─── */
.btn-custom {
  background: var(--primary);
  color: #ffffff !important;
  border-radius: 8px;
  padding: 13px 28px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px var(--primary-glow);
  text-decoration: none;
}

.btn-custom:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--primary-glow);
}

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

.btn-secondary-custom {
  background: var(--surface);
  color: var(--text-main) !important;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary-custom:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

/* ─── Verification & Loading Animation ─── */
.status-icon-orb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.status-icon-orb.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2);
}

.status-icon-orb.loading {
  background: rgba(30, 91, 255, 0.12);
  color: var(--primary);
  border: 1.5px solid rgba(30, 91, 255, 0.25);
  box-shadow: 0 0 24px var(--primary-glow);
}

.status-icon-orb.error {
  background: rgba(229, 57, 53, 0.12);
  color: var(--accent);
  border: 1.5px solid rgba(229, 57, 53, 0.25);
  box-shadow: 0 0 24px var(--accent-glow);
}

.progress-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.progress-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.progress-checklist-item.done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.progress-checklist-item.pending {
  opacity: 0.6;
}

.progress-checklist-item.current {
  border-color: var(--primary);
  background: rgba(30, 91, 255, 0.06);
  opacity: 1;
}

.credentials-box {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.cred-row:last-child {
  border-bottom: none;
}

.cred-label {
  color: var(--text-muted);
}

.cred-value {
  font-family: monospace;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30, 91, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ─── Footer ─── */
.footer-simple {
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 40px;
}

@media (max-width: 991px) {
  .hero-col {
    margin-bottom: 36px;
    text-align: center;
  }
  .feature-pill {
    text-align: left;
  }
}
