@charset "UTF-8";
:root {
  --yuntech-primary: #00908d;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}
/* 警告框 */
.alert {
  border: none;
  border-radius: 8px;
  border-left: 4px solid;
}
.alert-info {
  background-color: #e5f4f3;
  border-left-color: var(--yuntech-primary);
  color: var(--yuntech-primary);
  z-index: 999;
}
.alert-warning {
  background-color: #fdf6ec;
  border-left-color: var(--yuntech-secondary);
  color: var(--yuntech-secondary);
}
.alert-danger {
  background-color: #ffebee;
  color: #c62828;
  --bs-alert-color: #c62828;
  --bs-alert-link-color: #c62828;
}
.login-wrapper {
  display: flex;
  height: 100vh;
  width: 100%;
}
.login-left {
  background: linear-gradient(135deg, #00908d 0%, #00a8a5 100%);
  color: white;
  width: 50%;
  min-width: 400px;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.register-right {
  background: #ffffff;
  flex: 1;
  padding: 2rem 2rem 3rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 3rem;
}
.register-form-container {
  width: 100%;
  max-width: 750px;
  padding: 0 1rem;
}
.system-logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  z-index: 2;
  position: relative;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.features {
  z-index: 2;
  position: relative;
  margin-bottom: 2rem;
}
.features .d-flex {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 3rem;
  margin-bottom: 0.8rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.features .d-flex:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}
.features .d-flex:last-child {
  margin-bottom: 0;
}
.system-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  z-index: 2;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.system-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  z-index: 2;
  position: relative;
}
.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2c3e50;
}
.welcome-subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.form-section {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #f8f9fa;
}
.form-section h6 {
  color: var(--yuntech-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.form-control:focus {
  border-color: var(--yuntech-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 144, 141, 0.25);
}
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.form-select:focus {
  border-color: var(--yuntech-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 144, 141, 0.25);
}
.input-group-text {
  border: 2px solid #e9ecef;
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: #f8f9fa;
  color: #6c757d;
  transition: all 0.3s ease;
}
.input-group .form-control {
  border-left: none;
  border-radius: 0 12px 12px 0;
}
.input-group:focus-within .input-group-text {
  border-color: var(--yuntech-primary);
  background: rgba(0, 144, 141, 0.1);
  color: var(--yuntech-primary);
}
.input-group:focus-within .form-control {
  border-color: var(--yuntech-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 144, 141, 0.25);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.8rem 3.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  z-index: 2;
  position: relative;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  color: #fff !important;
}
.btn-outline-secondary {
  border: 2px solid #e9ecef;
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #6c757d;
  transition: all 0.3s ease;
}
.input-group:focus-within .btn-outline-secondary {
  border-color: var(--yuntech-primary);
  color: var(--yuntech-primary);
}
.form-check-input:checked {
  background-color: var(--yuntech-primary);
  border-color: var(--yuntech-primary);
}
.btn-outline-primary {
  border: 2px solid var(--yuntech-primary);
  color: var(--yuntech-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover {
  background: var(--yuntech-primary)!important;
  border-color: var(--yuntech-primary)!important;
  color: white!important;
  transform: translateY(-1px);
}
.required {
  color: #dc3545;
}
.form-text {
  font-size: 0.875rem;
  color: #6c757d;
}
.login-right {
  background: #ffffff;
  flex: 1;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.login-form-container {
  width: 100%;
  max-width: 500px;
}
.system-logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  z-index: 2;
  position: relative;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.features {
  z-index: 2;
  position: relative;
}
.system-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  z-index: 2;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.system-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  z-index: 2;
  position: relative;
}
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.form-control:focus {
  border-color: var(--yuntech-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 144, 141, 0.25);
}
.input-group-text {
  border: 2px solid #e9ecef;
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: #f8f9fa;
  color: #6c757d;
  transition: all 0.3s ease;
}
.input-group .form-control {
  border-left: none;
  border-radius: 0 12px 12px 0;
}
/* 修正：當輸入框 focus 時，左側圖標區域也要同步變色 */
.input-group:focus-within .input-group-text {
  border-color: var(--yuntech-primary);
  background: rgba(0, 144, 141, 0.1);
  color: var(--yuntech-primary);
}
.input-group:focus-within .form-control {
  border-color: var(--yuntech-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 144, 141, 0.25);
}
.btn-primary {
  background: linear-gradient(135deg, var(--yuntech-primary) 0%, #00a8a5 100%);
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 144, 141, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 144, 141, 0.4);
  background: linear-gradient(135deg, #007a77 0%, #009994 100%);
}
.btn-outline-secondary {
  border: 2px solid #e9ecef;
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #6c757d;
  transition: all 0.3s ease;
}
/* 修正：密碼顯示按鈕在 focus 時的樣式 */
.input-group:focus-within .btn-outline-secondary {
  border-color: var(--yuntech-primary);
  color: var(--yuntech-primary);
}
.form-check-input:checked {
  background-color: var(--yuntech-primary);
  border-color: var(--yuntech-primary);
}
.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2c3e50;
}
.welcome-subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
/* 忘記密碼連結樣式 */
.forgot-password-link {
  color: var(--yuntech-primary);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.forgot-password-link:hover {
  color: #007a77;
  text-decoration: underline;
}
/* 修正 Bootstrap 驗證狀態背景圖片 */
.form-control.is-invalid, .form-control.is-valid {
  background-image: none !important;
  padding-right: 0.75rem !important;
}
.form-note {
  margin-top: .3rem !important;
  color: #999;
  font-size: 14px;
}
.register-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}
.register-left {
  background: linear-gradient(135deg, #00908d 0%, #00a8a5 100%);
  color: white;
  width: 40%;
  min-width: 350px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

/* 驗證碼樣式 */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.captcha-display {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: .4rem .8rem;
  font-family: 'Courier New', monospace;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.2rem;
  color: var(--yuntech-primary);
  text-align: center;
  user-select: none;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}
.captcha-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 144, 141, 0.1) 2px, rgba(0, 144, 141, 0.1) 4px);
  pointer-events: none;
}
.captcha-refresh {
  border: 2px solid var(--yuntech-primary);
  color: var(--yuntech-primary);
  background: transparent;
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 44px;
  height: 46px;
}
.captcha-refresh:hover {
  background: var(--yuntech-primary);
  color: white;
}
/* Modal 按鈕統一樣式 */
.modal-footer .btn {
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  font-weight: 500;
  transition: all 0.3s ease;
}
.modal-footer .btn-secondary {
  background: #6c757d;
  border: none;
}
.modal-footer .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}
.modal-footer .btn-primary {
  background: linear-gradient(135deg, var(--yuntech-primary) 0%, #00a8a5 100%);
  border: none;
}
.modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #007a77 0%, #009994 100%);
  transform: translateY(-1px);
}
.modal-header {
  background: var(--yuntech-primary);
  color: white;
  padding: 1.2rem 2rem;
}
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.modal-body {
  padding: 1.7rem 2rem 2rem;
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.8;
  color: #555;
}
.modal-header .btn-close {
  filter: invert(1);
}
.modal-body p {
    margin-bottom: 0;
}
.modal-body h6 {
    color: var(--yuntech-primary);
    font-size: 1.1rem!important;
    font-weight: 600;
}
/* 版權信息嵌入樣式 */
  .copyright-embedded {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
  }
  .copyright-embedded .copyright-text {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .copyright-embedded .copyright-text a {
    color: var(--yuntech-primary);
    font-size: 0.875rem;
    text-decoration: none;
  }
  .copyright-embedded .copyright-text a:hover {
    color: var(--yuntech-primary);
    text-decoration: underline;
  }
/* 電子信箱認證樣式 */
.email-verification {
    background: #ecf5f5;
    border: 2px solid var(--yuntech-primary);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    display: none;
}
.email-verification.show {
    display: block;
}
.verification-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.verification-status.verified {
    color: #00908d !important;
    background: #e6f7f6 !important;
    border: 1px solid #b3e6e4 !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}
.verification-status.verified i,
.verification-status.verified span {
    color: #00908d !important;
}
.verification-status.pending {
    color: var(--yuntech-primary);
}
.verification-status.failed {
    color: #dc3545;
}
.verification-code-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.8rem;
}
.verification-timer {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
/* 響應式設計 */
@media (max-width: 992px) {
    .features {
        display: none;
    }
    .system-subtitle {
        margin-bottom:0
    }
  .login-wrapper {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .login-left {
    width: 100%;
    min-width: auto;
    height: auto;
    min-height: auto;
    padding: 2rem;
  }
  .login-right {
    height: auto;
    min-height: 50vh;
    padding: 2rem;
  }
  .system-title {
    font-size: 1.8rem;
      margin-bottom: .5rem;
  }
  .welcome-title {
    font-size: 2rem;
  }
  .features .d-flex {
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.8rem;
  }
  .captcha-container {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .register-wrapper {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .register-left {
    width: 100%;
    min-width: auto;
    height: auto;
    min-height:auto;
    padding: 2rem;
  }
  .register-right {
    height: auto;
    min-height: 50vh;
    padding: 2rem;
  }
  .system-title {
    font-size: 1.8rem;
  }
  .welcome-title {
    font-size: 2rem;
  }
  .features .d-flex {
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.8rem;
  }
  .captcha-container {
    align-items: flex-start;
    gap: 0.5rem;
  }

}
@media (max-width: 768px) {
  .login-left {
    min-height: 45vh;
    padding: 1.5rem;
  }
  .login-right {
    padding: 1.5rem;
  }
  .login-form-container {
    max-width: 400px;
  }
  .system-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  .system-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .welcome-title {
    font-size: 1.8rem;
  }
  .welcome-subtitle {
    font-size: 1rem;
  }
  .register-left {
    min-height: 45vh;
    padding: 1.5rem;
  }
  .register-right {
    padding: 1.5rem;
  }
  .register-form-container {
    padding: 0 0.5rem;
  }
  .system-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  .system-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .welcome-title {
    font-size: 1.8rem;
  }
  .welcome-subtitle {
    font-size: 1rem;
  }
}
@media (max-width: 576px) {
  body {
    overflow-y: auto;
  }
  .login-wrapper {
    min-height: 100vh;
    height: auto;
  }
  .login-left {
    min-height: 40vh;
    padding: 1.5rem 1rem;
  }
  .login-right {
    padding: 1.5rem 1rem;
    min-height: 60vh;
  }
  .login-form-container {
    max-width: 350px;
  }
  .system-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .system-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  .system-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
  .welcome-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  .welcome-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  .features .d-flex {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.4rem;
  }
  .form-control, .input-group-text, .btn {
    font-size: 0.9rem;
  }

  .register-wrapper {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
  }
  .register-left {
    min-height: 40vh;
    padding: 1.5rem 1rem;
  }
  .register-right {
    padding: 1.5rem 0.5rem;
    min-height: 60vh;
  }
  .register-form-container {
    padding: 0 0.25rem;
  }
  .system-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .system-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  .system-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
  .welcome-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  .welcome-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  .features .d-flex {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.4rem;
  }
  .form-control, .input-group-text, .btn, .form-select {
    font-size: 0.9rem;
  }
  .form-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }

}
@media (max-width: 480px) {
  .login-left {
    padding: 1rem;
    min-height: 35vh;
  }
  .login-right {
    padding: 1.5rem;
  }
  .system-title {
    font-size: 1.2rem;
  }
  .system-subtitle {
    font-size: 0.85rem;
  }
  .welcome-title {
    font-size: 1.4rem;
  }
  .features .d-flex {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
  .register-left {
    padding: 1rem;
    min-height: 35vh;
  }
  .register-right {
    padding: 1.5rem;
  }
  .system-title {
    font-size: 1.2rem;
  }
  .system-subtitle {
    font-size: 0.85rem;
  }
  .welcome-title {
    font-size: 1.4rem;
  }
  .features .d-flex {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
.copyright-embedded .copyright-text a {
    display: block;
}
}
@media (max-height: 600px) and (max-width: 992px) {
  .login-left {
    min-height: 30vh;
    padding: 1rem;
  }
  .login-right {
    min-height: 70vh;
  }
  .system-logo {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .system-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .system-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  .features .d-flex {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.3rem;
  }
  .register-left {
    min-height: 30vh;
    padding: 1rem;
  }
  .register-right {
    min-height: 70vh;
  }
  .system-logo {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .system-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .system-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  .features .d-flex {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.3rem;
  }
}