/* =============================================================================
   ANNARAKSHA AI - CINEMATIC 3D HOME & LOGIN PORTAL STYLES
   Futuristic, Mission-Critical Cybernetic Interface
   ============================================================================= */

/* Portal Root Container */
#cinematic-portal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 45%, rgba(6, 12, 28, 0.20) 0%, rgba(3, 7, 18, 0.60) 65%, rgba(2, 4, 10, 0.92) 100%);
  color: #f8fafc;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

#cinematic-portal.portal-launching {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(8px);
  pointer-events: none;
}

/* Atmospheric Entry Transition Animation */
#cinematic-portal.portal-atmospheric-entry {
  pointer-events: none;
}

#cinematic-portal.portal-atmospheric-entry .portal-ui-layer {
  opacity: 0 !important;
  transform: scale(1.04) !important;
  filter: blur(6px) !important;
  pointer-events: none !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease !important;
}

#cinematic-portal.portal-fading-out {
  opacity: 0 !important;
  filter: blur(8px) brightness(1.2) !important;
  transition: opacity 0.45s ease-out, filter 0.45s ease-out !important;
}

/* Atmospheric Entry Target Reticle & Telemetry Overlay */
.atmospheric-entry-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: atmosphericHudEntry 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.entry-target-reticle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1.5px dashed rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.45), inset 0 0 25px rgba(6, 182, 212, 0.25);
  position: relative;
  animation: entryReticleSpin 4s linear infinite;
}

.entry-target-reticle::before,
.entry-target-reticle::after {
  content: '';
  position: absolute;
  background: #38bdf8;
}

.entry-target-reticle::before {
  top: 50%;
  left: -14px;
  right: -14px;
  height: 1.5px;
  transform: translateY(-50%);
  opacity: 0.7;
}

.entry-target-reticle::after {
  left: 50%;
  top: -14px;
  bottom: -14px;
  width: 1.5px;
  transform: translateX(-50%);
  opacity: 0.7;
}

.entry-telemetry-text {
  margin-top: 1.25rem;
  text-align: center;
  font-family: var(--font-mono, monospace);
  color: #e2e8f0;
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.8);
}

.entry-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #38bdf8;
}

.entry-coords {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  letter-spacing: 0.06em;
}

.entry-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.68rem;
  color: #10b981;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.entry-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveDotPulse 0.8s infinite;
}

/* Atmospheric Ionization Flash Bloom */
.atmospheric-flash-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.4) 0%, rgba(6, 182, 212, 0.2) 45%, rgba(2, 6, 18, 0) 80%);
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

@keyframes atmosphericHudEntry {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); filter: blur(4px); }
}

@keyframes entryReticleSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#cinematic-portal.portal-hidden {
  display: none !important;
}

/* 3D WebGL Canvas Layer - Backside of Login Screen */
#portal-3d-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  cursor: grab;
}

#portal-3d-canvas-container:active {
  cursor: grabbing;
}

#portal-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Vignette & Tactical Scanlines Overlay */
.portal-scanlines-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at center, transparent 65%, rgba(2, 5, 12, 0.45) 100%),
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.10) 50%),
    linear-gradient(90deg, rgba(6, 182, 212, 0.02), rgba(16, 185, 129, 0.01), rgba(56, 189, 248, 0.02));
  background-size: 100% 100%, 100% 3px, 6px 100%;
  opacity: 0.35;
}

/* Foreground Interactive UI Layer */
.portal-ui-layer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  pointer-events: none; /* Allows 3D canvas interaction beneath, children re-enable pointer-events */
}

/* Top Security Status Ribbon */
.portal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(6, 11, 25, 0.88) 0%, rgba(6, 11, 25, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.portal-logo-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #06b6d4;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4), inset 0 0 12px rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 16, 36, 0.85);
  position: relative;
  overflow: hidden;
}

.portal-logo-ring img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.portal-brand-text h1 {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-brand-text p {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  margin: 0;
  font-family: var(--font-mono, monospace);
}

.portal-sys-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.portal-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portal-chip-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
}

.portal-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-glow 1.8s infinite;
}

/* Main Screen View Containers (Home View vs Login View) */
.portal-content-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
}

.portal-view-pane {
  display: none;
  width: 100%;
  animation: portalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portal-view-pane.active {
  display: block;
}

@keyframes portalFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =============================================================================
   HOME SCREEN SPECIFICS
   ============================================================================= */
.portal-home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

@media (max-width: 1080px) {
  .portal-home-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Left Hero Information Panel */
.portal-hero-card {
  pointer-events: auto;
  background: rgba(14, 21, 38, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 18px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(6, 182, 212, 0.15);
}

/* Sci-fi Corner Brackets */
.corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #06b6d4;
  pointer-events: none;
}
.corner-bracket.tl { top: -1px; left: -1px; border-top: 2px solid #06b6d4; border-left: 2px solid #06b6d4; border-top-left-radius: 4px; }
.corner-bracket.tr { top: -1px; right: -1px; border-top: 2px solid #06b6d4; border-right: 2px solid #06b6d4; border-top-right-radius: 4px; }
.corner-bracket.bl { bottom: -1px; left: -1px; border-bottom: 2px solid #06b6d4; border-left: 2px solid #06b6d4; border-bottom-left-radius: 4px; }
.corner-bracket.br { bottom: -1px; right: -1px; border-bottom: 2px solid #06b6d4; border-right: 2px solid #06b6d4; border-bottom-right-radius: 4px; }

.portal-tag-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.portal-main-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.portal-main-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-lead-para {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

/* Strategic Metrics Row */
.portal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .portal-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portal-metric-card {
  background: rgba(10, 16, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.portal-metric-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(10, 16, 32, 0.85);
  transform: translateY(-2px);
}

.portal-metric-val {
  font-size: 1.35rem;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  line-height: 1.2;
}

.portal-metric-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* Action Buttons Bar */
.portal-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.portal-btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
}

.portal-btn-primary:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0369a1 100%);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.portal-btn-secondary {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.portal-btn-secondary:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Quick Role Entrance Strip */
.portal-roles-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.portal-roles-strip-title {
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.portal-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-role-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.portal-role-pill-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.45);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Right Side: Holographic Telemetry HUD & 3D Interactive Control Card */
.portal-side-hud {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portal-telemetry-panel {
  background: rgba(14, 21, 38, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  position: relative;
}

.portal-hud-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.portal-hud-title {
  font-size: 0.8rem;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #06b6d4;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-hud-stream {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 240px;
  overflow-y: auto;
}

.portal-stream-item {
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid #06b6d4;
  border-radius: 0 6px 6px 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
}

.portal-stream-item.critical {
  border-left-color: #f43f5e;
}

.portal-stream-item.success {
  border-left-color: #10b981;
}

.portal-stream-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.portal-stream-text {
  color: #e2e8f0;
  line-height: 1.4;
}

/* Interactive 3D Orbit Tip Card */
.portal-orbit-hint-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.portal-orbit-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.portal-orbit-hint-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.portal-orbit-hint-text p {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

/* =============================================================================
   FUTURISTIC LOGIN TERMINAL SPECIFICS
   ============================================================================= */
.portal-login-card {
  pointer-events: auto;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  background: rgba(14, 21, 38, 0.82);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(6, 182, 212, 0.18);
  position: relative;
}

.portal-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.portal-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.portal-login-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem 0;
}

.portal-login-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

/* Role Clearance Selector Pills */
.portal-clearance-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.portal-clearance-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.5rem 0.6rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-align: center;
}

.portal-clearance-tab.active {
  background: rgba(6, 182, 212, 0.2);
  color: #ffffff;
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

/* Biometric Scanner Simulation Module */
.portal-biometric-zone {
  background: rgba(10, 16, 32, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.portal-biometric-zone:hover {
  border-color: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
  background: rgba(10, 16, 32, 0.9);
}

.portal-scanner-aperture {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.portal-scan-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
  top: 0;
  animation: scanLaserCycle 2.2s infinite ease-in-out;
}

@keyframes scanLaserCycle {
  0% { top: 0; opacity: 0.4; }
  50% { top: 100%; opacity: 1; }
  100% { top: 0; opacity: 0.4; }
}

.portal-scanner-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.portal-scanner-info p {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 3px 0 0 0;
}

.portal-scan-status-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: #06b6d4;
  margin-top: 4px;
  font-weight: 700;
}

/* Form Input Groups */
.portal-form-group {
  margin-bottom: 1.25rem;
}

.portal-input-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.portal-input-wrap {
  position: relative;
}

.portal-input-field {
  width: 100%;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.portal-input-field:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  background: rgba(8, 14, 28, 0.98);
}

/* Fast Login CTA */
.portal-login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.portal-btn-auth {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
  text-transform: uppercase;
}

.portal-btn-auth:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.65);
  transform: translateY(-2px);
}

.portal-btn-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.75rem 1.25rem;
  border-radius: 9px;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.portal-btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* User Profile Badge in Main Header */
.hud-user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 21, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 9999px;
  padding: 0.28rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-user-profile-badge:hover {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
}

.hud-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #06b6d4;
  color: #050811;
  font-weight: 800;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-user-text {
  font-size: 0.72rem;
  color: #f8fafc;
  font-weight: 700;
}

.hud-user-role-tag {
  font-size: 0.62rem;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}
