/* =========================================================
   Strom Node High-Tech Server Access Portal Style
   ========================================================= */

/* --- High-Tech Digital Grid Background --- */
.tech-grid-bg {
  position: fixed;
  inset: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(226, 177, 60, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 177, 60, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* --- Floating Tech Scan Line --- */
.tech-scan-line {
  position: fixed;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    rgba(226, 177, 60, 0) 0%, 
    rgba(226, 177, 60, 0.1) 15%, 
    rgba(226, 177, 60, 0.25) 50%, 
    rgba(226, 177, 60, 0.1) 85%, 
    rgba(226, 177, 60, 0) 100%);
  top: -100px;
  animation: scanLine 7s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes scanLine {
  0% { top: -10px; }
  100% { top: 110%; }
}

/* --- Ambient Cyber Glows --- */
.ambient-glow {
  position: fixed;
  width: 45vw;
  height: 45vw;
  min-width: 350px;
  min-height: 350px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  animation: floatGlow 25s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.bg-glow-2 {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, #00dfff 0%, transparent 70%);
  animation-delay: -9s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(6%, 10%) scale(1.1) rotate(90deg); }
  100% { transform: translate(-4%, -6%) scale(0.95) rotate(180deg); }
}

/* --- Logo and Title Block --- */
.auth-wrapper {
  overflow: hidden;
  position: relative;
}

.auth-logo {
  margin-bottom: 25px;
  text-align: center;
}

.auth-logo img {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  padding: 8px;
  background: rgba(3, 5, 8, 0.8);
  border: 1.5px solid rgba(226, 177, 60, 0.25);
  box-shadow: 0 0 25px rgba(226, 177, 60, 0.12), inset 0 1px 1px rgba(255,255,255,0.05);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s;
}

.auth-logo img:hover {
  transform: scale(1.08) rotate(4deg);
  border-color: var(--primary);
  box-shadow: 0 0 35px rgba(226, 177, 60, 0.35);
}

.auth-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 15px !important;
}

.auth-subtitle {
  font-size: 11px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  color: var(--text-muted) !important;
  margin-top: 6px !important;
  opacity: 0.75;
}

/* --- Tech Card Frame (.auth-box) --- */
.auth-box {
  position: relative;
  background: linear-gradient(135deg, rgba(8, 12, 21, 0.85) 0%, rgba(3, 5, 8, 0.95) 100%) !important;
  border: 1px solid rgba(226, 177, 60, 0.15) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.8), 0 0 40px rgba(226, 177, 60, 0.03) !important;
  padding: 34px 28px !important;
  overflow: visible;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-box:hover {
  border-color: rgba(226, 177, 60, 0.3) !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(226, 177, 60, 0.08) !important;
}

/* Cybernetic Corner Brackets */
.auth-box::before, .auth-box::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--primary);
  border-style: solid;
  pointer-events: none;
  transition: all 0.3s ease;
}

.auth-box::before {
  top: -2px; left: -2px;
  border-width: 2.5px 0 0 2.5px;
  filter: drop-shadow(0 0 4px rgba(226, 177, 60, 0.5));
}

.auth-box::after {
  bottom: -2px; right: -2px;
  border-width: 0 2.5px 2.5px 0;
  filter: drop-shadow(0 0 4px rgba(226, 177, 60, 0.5));
}

/* --- Node Telemetry Status Bar --- */
.node-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(226, 177, 60, 0.04);
  border: 1px solid rgba(226, 177, 60, 0.15);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #00ffcc;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ffcc, 0 0 15px #00ffcc;
  animation: pulseStatus 1.4s infinite alternate;
}

@keyframes pulseStatus {
  0% { opacity: 0.35; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.status-text {
  font-weight: 700;
}

/* --- Dark Console Slide Tabs --- */
.auth-tabs {
  background: rgba(3, 5, 8, 0.8) !important;
  border: 1px solid rgba(226, 177, 60, 0.12) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6) !important;
  border-radius: 12px !important;
  padding: 3px !important;
  margin: 0 0 26px !important;
}

.auth-tab {
  font-family: 'Outfit', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s ease !important;
  border-radius: 9px !important;
  padding: 11px !important;
}

.auth-tab.active {
  color: #050811 !important;
}

.auth-tab-slider {
  background: linear-gradient(135deg, #fbe382 0%, #e2b13c 100%) !important;
  border-radius: 9px !important;
  box-shadow: 0 5px 15px rgba(226, 177, 60, 0.3) !important;
  top: 3px !important;
  left: 3px !important;
  height: calc(100% - 6px) !important;
  width: calc(50% - 3px) !important;
}

/* --- High-Tech Form Fields & Power Indicators --- */
.form-group {
  margin-bottom: 20px !important;
}

.form-label {
  font-size: 11px !important;
  color: var(--text-secondary) !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  opacity: 0.85;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-control {
  background: rgba(3, 5, 8, 0.6) !important;
  border: 1px solid rgba(226, 177, 60, 0.15) !important;
  border-radius: 12px !important;
  padding: 15px 18px !important;
  font-size: 14px !important;
  color: #ffffff !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.22) !important;
}

.form-control:focus {
  border-color: rgba(226, 177, 60, 0.5) !important;
  background: rgba(3, 5, 8, 0.8) !important;
  box-shadow: 0 0 15px rgba(226, 177, 60, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
}

/* Power-meter line effect */
.input-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transition: width 0.45s ease, left 0.45s ease;
  z-index: 5;
  pointer-events: none;
}

.input-group:focus-within::after {
  width: 100%;
  left: 0;
  box-shadow: 0 0 8px var(--primary);
}

.input-group .form-control {
  padding-left: 46px !important;
}

.input-icon {
  color: rgba(255, 255, 255, 0.22) !important;
  left: 16px !important;
  width: 18px !important;
  height: 18px !important;
  transition: all 0.3s ease !important;
}

.form-control:focus ~ .input-icon {
  color: var(--primary) !important;
  transform: translateY(-50%) scale(1.08) !important;
  filter: drop-shadow(0 0 5px rgba(226, 177, 60, 0.4));
}

.input-action {
  right: 16px !important;
  color: rgba(255, 255, 255, 0.25) !important;
  transition: color 0.3s, transform 0.2s !important;
}

.input-action:hover {
  color: var(--primary) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* --- Prefix Layout --- */
.prefix-group {
  gap: 10px !important;
}

.input-prefix {
  background: rgba(226, 177, 60, 0.04) !important;
  border: 1px solid rgba(226, 177, 60, 0.18) !important;
  color: var(--primary) !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  transition: all 0.3s ease !important;
}

.prefix-group:focus-within .input-prefix {
  border-color: rgba(226, 177, 60, 0.4) !important;
  background: rgba(226, 177, 60, 0.08) !important;
  box-shadow: 0 0 10px rgba(226, 177, 60, 0.05) !important;
}

/* --- Core Tech Submit Button --- */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e2b13c 0%, #b8860b 100%) !important;
  border-radius: 12px !important;
  padding: 16px 24px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  border: 1.5px solid rgba(226, 177, 60, 0.25) !important;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 35%;
  height: 200%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(28deg);
  transition: all 0.8s ease;
  opacity: 0;
  pointer-events: none;
}

.btn-gold:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 25px rgba(226, 177, 60, 0.45), inset 0 0 10px rgba(255, 255, 255, 0.15) !important;
  border-color: var(--primary-light) !important;
}

.btn-gold:hover::after {
  left: 130%;
  opacity: 1;
}

.btn-gold:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 0 4px 10px rgba(184, 134, 11, 0.15) !important;
}

/* --- SMS Button --- */
.otp-btn {
  right: 6px !important;
  top: 6px !important;
  bottom: 6px !important;
  height: calc(100% - 12px) !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #fbe382 0%, #e2b13c 100%) !important;
  color: #0b0f19 !important;
  font-weight: 800 !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 11px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 2px 8px rgba(226, 177, 60, 0.2) !important;
  transition: all 0.3s ease !important;
}

.otp-btn:hover:not(:disabled) {
  transform: scale(1.03) !important;
  filter: brightness(1.06) !important;
}

/* --- Links and Terms --- */
.forgot-link {
  margin-top: 15px !important;
}

.forgot-link a {
  color: rgba(226, 177, 60, 0.7) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  transition: color 0.3s, text-shadow 0.3s !important;
}

.forgot-link a:hover {
  color: var(--primary) !important;
  text-shadow: 0 0 6px rgba(226, 177, 60, 0.25) !important;
  text-decoration: underline !important;
}

.terms-row {
  margin: 18px 0 14px !important;
  gap: 12px !important;
}

.terms-checkbox {
  accent-color: var(--primary) !important;
  cursor: pointer !important;
  width: 16px !important;
  height: 16px !important;
}

.terms-text {
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  line-height: 1.5 !important;
}

.terms-text a {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

/* --- System Download Modules --- */
.app-section-header {
  font-size: 10px !important;
  color: var(--text-muted) !important;
  letter-spacing: 2.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
}

.app-buttons {
  gap: 12px !important;
  margin-top: 18px !important;
}

.btn-pro-app {
  position: relative !important;
  border-radius: 12px !important;
  height: 52px !important;
  border: 1px solid rgba(226, 177, 60, 0.15) !important;
  background: rgba(3, 5, 8, 0.7) !important;
  padding: 0 14px !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0,0,0,0.2) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-pro-app:hover {
  transform: translateY(-2px) !important;
  border-color: var(--primary) !important;
  background: rgba(18, 24, 38, 0.9) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(226, 177, 60, 0.05) !important;
}

.btn-pro-app::after {
  content: 'v2.8-STABLE';
  position: absolute;
  right: 10px;
  top: 4px;
  font-size: 6px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-family: monospace;
  opacity: 0.4;
}

/* APK button highlighted */
.btn-pro-app:nth-child(2) {
  background: linear-gradient(135deg, rgba(226, 177, 60, 0.05) 0%, rgba(3, 5, 8, 0.7) 100%) !important;
  border: 1.5px solid rgba(226, 177, 60, 0.28) !important;
}

.btn-pro-app:nth-child(2):hover {
  background: linear-gradient(135deg, rgba(226, 177, 60, 0.12) 0%, rgba(18, 24, 38, 0.9) 100%) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 8px 20px rgba(226, 177, 60, 0.12), 0 0 12px rgba(226, 177, 60, 0.08) !important;
}

.btn-pro-text {
  text-align: left !important;
}

.btn-pro-large {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

.btn-pro-small {
  font-size: 8px !important;
  opacity: 0.65 !important;
}

/* --- Console Toasts --- */
.toast {
  background: rgba(3, 5, 8, 0.9) !important;
  border: 1.5px solid rgba(226, 177, 60, 0.3) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  color: #ffffff !important;
  font-family: monospace !important;
  font-size: 12px !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7) !important;
}

.toast.success { border-color: var(--success) !important; }
.toast.error { border-color: var(--danger) !important; }
.toast.warning { border-color: var(--warning) !important; }

/* Loader spinner */
.loading-spinner {
  border-color: rgba(11, 15, 25, 0.2) !important;
  border-top-color: #0b0f19 !important;
}
