/* entry.css - Unified Entry Gateway Styles for Finger Nexus AI CRM */

:root {
  --entry-bg: #090d16;
  --entry-surface: #0f172a;
  --entry-card: rgba(30, 41, 59, 0.7);
  --entry-border: rgba(99, 102, 241, 0.25);
  --nexus-blue: #3b82f6;
  --nexus-purple: #8b5cf6;
  --nexus-cyan: #06b6d4;
  --nexus-gray: rgba(15, 23, 42, 0.8);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --danger-red: #ef4444;
  --success-green: #10b981;
}

#entryGatewayOverlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 40%),
              radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.1), transparent 40%),
              #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#entryGatewayOverlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.entry-container {
  width: 100%;
  max-width: 580px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--entry-border);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(20px);
  padding: 32px 36px;
  margin: auto;
}

.entry-header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: white;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tabs {
  display: flex;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-control {
  width: 100%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.btn-outline:hover {
  background: rgba(51, 65, 85, 0.8);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.divider:not(:empty)::before { margin-right: 12px; }
.divider:not(:empty)::after { margin-left: 12px; }

.social-login {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.info-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 18px;
  line-height: 1.6;
}

.info-text a {
  color: #818cf8;
  text-decoration: none;
  font-weight: 600;
}

.info-text a:hover {
  text-decoration: underline;
}

.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(30, 41, 59, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 24px;
}

.tfa-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.tfa-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tfa-option:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(49, 46, 129, 0.2);
}

.ws-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ws-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ws-item:hover {
  border-color: #6366f1;
  background: rgba(49, 46, 129, 0.25);
  transform: translateY(-1px);
}

.ws-item-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ws-icon {
  width: 36px;
  height: 36px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}

.ws-details h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #fff;
}

.ws-details p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.badge-owner {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-member {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.wizard-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 28px;
  position: relative;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
}

.step-dot.active {
  border-color: #6366f1;
  background: #4f46e5;
  color: white;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.step-dot.completed {
  border-color: #10b981;
  background: #059669;
  color: white;
}

.step-label {
  position: absolute;
  top: 38px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--text-muted);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.template-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.template-card.active {
  border-color: #6366f1;
  background: rgba(49, 46, 129, 0.3);
  box-shadow: 0 0 0 1px #6366f1;
}

.template-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.template-card h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #fff;
}

.template-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.upload-zone {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  background: rgba(30, 41, 59, 0.3);
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.upload-zone:hover {
  border-color: #818cf8;
  background: rgba(49, 46, 129, 0.2);
}

.upload-icon {
  font-size: 32px;
  color: #818cf8;
  margin-bottom: 10px;
}

.upload-zone h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #fff;
}

.upload-zone p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
