/* 科技感特效樣式 - 可直接引入在 register_sep_01.php 中 */

/* 數位化背景格子效果 */
.digital-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(86, 204, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(86, 204, 255, 0.05) 1px, transparent 1px);
  /* animation: gridPulse 10s infinite linear; */
}

@keyframes gridPulse {
  0% {
    opacity: 0.3;
    background-size: 40px 40px;
  }
  50% {
    opacity: 0.5;
    background-size: 42px 42px;
  }
  100% {
    opacity: 0.3;
    background-size: 40px 40px;
  }
}

/* 科技感標題效果 */
.tech-title {
  color: #fff;
  text-shadow: 0 0 10px rgba(86, 204, 255, 0.8), 0 0 20px rgba(86, 204, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.tech-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(86, 204, 255, 0.8), transparent);
  animation: techLineScan 3s infinite;
}

@keyframes techLineScan {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* 發光邊框按鈕 */
.btn-tech {
  background-color: rgba(14, 22, 45, 0.9);
  color: #56ccff;
  border: 1px solid rgba(86, 204, 255, 0.6);
  border-radius: 4px;
  padding: 8px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(86, 204, 255, 0.4);
  z-index: 1;
}

.btn-tech:hover {
  color: #ffffff;
  box-shadow: 0 0 15px rgba(86, 204, 255, 0.7);
  background-color: rgba(24, 39, 78, 0.9);
}

.btn-tech:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(86, 204, 255, 0.2), transparent);
  transition: all 0.6s;
  z-index: -1;
}

.btn-tech:hover:before {
  left: 100%;
}

/* 浮動發光元素 */
.floating-tech {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 204, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
  filter: blur(10px);
}

.floating-1 {
  top: 10%;
  left: 5%;
  animation: float1 15s infinite alternate ease-in-out;
}

.floating-2 {
  top: 60%;
  right: 10%;
  width: 150px;
  height: 150px;
  animation: float2 20s infinite alternate ease-in-out;
}

@keyframes float1 {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  100% {
    transform: translateY(20px) translateX(20px);
    opacity: 0.5;
  }
}

@keyframes float2 {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-30px) translateX(-20px);
    opacity: 0.6;
  }
}

/* 科技卡片懸停效果 */
.card.tech-card {
  transition: all 0.3s ease;
  background: rgba(14, 22, 45, 0.8);
  border: 1px solid rgba(86, 204, 255, 0.2);
}

.card.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 
              0 0 15px rgba(86, 204, 255, 0.3);
  border-color: rgba(86, 204, 255, 0.4);
}

.card-body {
  background: rgba(255, 255, 255, 0.8);
  color: rgba(3, 31, 54, 0.9);
}

/* 加載動畫效果改進 */
.loading-bg {
  background-color: rgba(5, 15, 40, 0.9);
}

.loading-bg:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin-top: -100px;
  margin-left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 204, 255, 0.2) 0%, transparent 70%);
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* 改進錯誤提示樣式 */
.is-invalid.tech-input {
  box-shadow: 0 0 0 2px rgba(255, 99, 71, 0.5);
  animation: errorPulse 2s infinite;
}

@keyframes errorPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 99, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 99, 71, 0);
  }
}

/* 科技感下拉選單 - 白色背景 */
.form-select.tech-select {
  background-color: rgba(255, 255, 255, 0.95);
  color: #0a2550;
  border: 1px solid rgba(86, 204, 255, 0.6);
  box-shadow: 0 0 8px rgba(86, 204, 255, 0.2);
}

.form-select.tech-select:focus {
  background-color: #ffffff;
  box-shadow: 0 0 0 0.25rem rgba(86, 204, 255, 0.25);
  border-color: rgba(86, 204, 255, 0.8);
}

/* 科技感輸入框 - 白色背景 */
.form-control.tech-input {
  background-color: rgba(255, 255, 255, 0.95);
  color: #0a2550;
  border: 1px solid rgba(86, 204, 255, 0.6);
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(86, 204, 255, 0.2);
}

.form-control.tech-input:focus {
  background-color: #ffffff;
  color: #003366;
  box-shadow: 0 0 0 0.25rem rgba(86, 204, 255, 0.25), inset 0 0 10px rgba(86, 204, 255, 0.1);
  border-color: rgba(86, 204, 255, 0.8);
}

/* 輸入框群組樣式 */
.input-group-text {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(86, 204, 255, 0.6);
  color: #0a2550;
}

/* 懸浮線條效果 */
.hover-line {
  position: relative;
  overflow: hidden;
}

.hover-line:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(86, 204, 255, 0.7);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}

.hover-line:hover:after {
  transform: translateX(0);
}
