:root {
  --color-accent: #10c29c;
}

/* 登入頁面樣式 - 科技感設計 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0a32 0%, #1a1a2e 50%, #0a0a32 100%);
  color: #ffffff;
  overflow: hidden;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* 背景裝飾 */
.bg-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
}

.bg-circle-1 {
  top: 25%;
  left: 25%;
  width: 400px;
  height: 400px;
  background: var(--color-accent);
}

.bg-circle-2 {
  bottom: 25%;
  right: 25%;
  width: 400px;
  height: 400px;
  background: #007cff;
}

/* 登入表單容器 */
.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 450px;
}

.login-form-container {
  background: rgba(26, 26, 46, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(3, 215, 244, 0.3);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Logo 區域 */
.logo-section {
  text-align: center;
  margin-bottom: 40px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(3, 215, 244, 0.2), rgba(0, 124, 255, 0.2));
  border: 2px solid rgba(3, 215, 244, 0.5);
  margin-bottom: 20px;
}

.logo-icon i {
  font-size: 30px;
  color: var(--color-accent);
  animation: pulse 2s infinite;
}

.system-title {
  font-size: 30px;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(3, 215, 244, 0.3);
}

.system-subtitle {
  color: #a0a0a0;
  font-size: 16px;
}

/* 表單樣式 */
.login-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-label i {
  color: var(--color-accent);
  margin-right: 8px;
}

.form-input {
  width: 100%;
  padding: 15px 16px;
  background: rgba(45, 55, 72, 0.5);
  border: 2px solid rgba(45, 55, 72, 0.5);
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #a0a0a0;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(45, 55, 72, 0.8);
  box-shadow: 0 0 20px rgba(3, 215, 244, 0.2);
  transform: translateY(-2px);
}

/* 密碼輸入框 */
.password-input-wrapper {
  position: relative;
}

.password-input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a0a0a0;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--color-accent);
}

/* 表單選項 */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.remember-me {
  display: flex;
  align-items: center;
  color: #e0e0e0;
  font-size: 14px;
  cursor: pointer;
}

.remember-checkbox {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}

.forgot-password {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #007cff;
}

/* 登入按鈕 */
.login-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--color-accent), #007cff);
  border: none;
  color: #0a0a32;
  font-size: 16px;
  font-weight: 600;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  background: linear-gradient(135deg, #007cff, var(--color-accent));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(3, 215, 244, 0.3);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-content, .btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-content i {
  margin-right: 8px;
}

.btn-loading {
  gap: 8px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(10, 10, 50, 0.3);
  border-top: 2px solid #0a0a32;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 底部資訊 */
.footer-info {
  text-align: center;
}

.security-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.security-item {
  display: flex;
  align-items: center;
  color: #a0a0a0;
  font-size: 12px;
}

.security-item i {
  margin-right: 4px;
}

.security-item:first-child i {
  color: #10b981;
}

.security-item:last-child i {
  color: #007cff;
}

.copyright {
  color: #666;
  font-size: 12px;
}

/* 裝飾性邊框 */
.corner-decoration {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(3, 215, 244, 0.5);
}

.corner-top-left {
  top: -15px;
  left: -15px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 10px;
}

.corner-top-right {
  top: -15px;
  right: -15px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 10px;
}

.corner-bottom-left {
  bottom: -15px;
  left: -15px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 10px;
}

.corner-bottom-right {
  bottom: -15px;
  right: -15px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 10px;
}

/* 動畫 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* RWD 響應式設計 */
@media (max-width: 768px) {
  .login-container {
    padding: 15px;
  }
  
  .login-form-container {
    padding: 30px 25px;
  }
  
  .logo-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .logo-icon i {
    font-size: 24px;
  }
  
  .system-title {
    font-size: 24px;
  }
  
  .system-subtitle {
    font-size: 14px;
  }
  
  .form-input {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .login-btn {
    padding: 12px;
    font-size: 14px;
  }
  
  .security-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .bg-circle-1,
  .bg-circle-2 {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .login-form-container {
    padding: 25px 20px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .corner-decoration {
    width: 20px;
    height: 20px;
  }
  
  .corner-top-left,
  .corner-top-right {
    top: -10px;
  }
  
  .corner-bottom-left,
  .corner-bottom-right {
    bottom: -10px;
  }
  
  .corner-top-left,
  .corner-bottom-left {
    left: -10px;
  }
  
  .corner-top-right,
  .corner-bottom-right {
    right: -10px;
  }
}
