﻿@charset "UTF-8";
/*
 * fido-login.css
 * 生物辨識（FIDO2 / WebAuthn）登入與綁定流程專用樣式
 * 適用頁面：login.html、Fido_terms.html、Fido_verification.html、Fido_binding.html、Fido_complete.html
 * 色系沿用 member-order-detail.css：#6eb2ff / #65a3e8 / #5183bc / #e2f0ff / #e2e2e2 / #626262 / #ff6e76 / #30d573
 */

/*--------------------------------------------
  1. 登入頁入口按鈕（生物辨識快速登入）
--------------------------------------------*/
.fido-entry {
  width: 100%;
}

.fido-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #6eb2ff;
  border-radius: 3px;
  background: #ffffff;
  text-align: left;
  -webkit-transition: all 0.2s ease-in-out;
          transition: all 0.2s ease-in-out;
}
.fido-btn:hover {
  background: #f2f8ff;
  border-color: #65a3e8;
  text-decoration: none;
}
.fido-btn:focus {
  background: #e2f0ff;
  border-color: #5183bc;
  text-decoration: none;
  outline: none;
}
.fido-btn:active {
  background: #e2f0ff;
}

/* 圖示外框：呼應可樂旅遊 .facescan-ic 的圓形臉部辨識圖示 */
.facescan-ic {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 40px;
          flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2f0ff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  /* 用於 figure 時需歸零 bootstrap 的下方間距 */
  margin: 0 10px 0 0;
}
.facescan-ic img {
  width: 24px;
  height: 24px;
}
.facescan-ic.facescan-ic_sm {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 24px;
          flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0 5px 0 0;
}
.facescan-ic.facescan-ic_sm img {
  width: 16px;
  height: 16px;
}

.fido-btn_txt {
  display: block;
}
.fido-btn_txt-main {
  display: block;
  color: #111111;
}
.fido-btn_txt-sub {
  display: block;
  color: #626262;
  margin-top: 2px;
}

/* 尚未啟用 / 不支援提示 */
.fido-entry_set,
.fido-entry_msg {
  width: 100%;
}
.fido-entry_msg {
  display: none;
}
.fido-entry_msg.is-show {
  display: block;
}

/* 裝置不支援時整組入口變灰且不可點擊 */
.fido-btn.is-disabled {
  border-color: #e2e2e2;
  background: #f8f8f9;
  pointer-events: none;
  cursor: not-allowed;
}
.fido-btn.is-disabled .facescan-ic {
  background: #e2e2e2;
}
.fido-btn.is-disabled .facescan-ic img,
.fido-btn.is-disabled .fido-btn_txt {
  -webkit-filter: grayscale(1);
          filter: grayscale(1);
  opacity: 0.7;
}

/* 密碼頁的文字型入口 */
.fido-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.fido-link.is-disabled {
  color: #b6b6b6;
  pointer-events: none;
  cursor: not-allowed;
}
.fido-link.is-disabled .facescan-ic {
  background: #e2e2e2;
}
.fido-link.is-disabled .facescan-ic img {
  -webkit-filter: grayscale(1);
          filter: grayscale(1);
  opacity: 0.7;
}

/*--------------------------------------------
  2. 步驟指示（服務條款 → 會員驗證 → 進行綁定）
--------------------------------------------*/
.fido-step {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
}
.fido-step_item {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  position: relative;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: #b6b6b6;
}
.fido-step_item::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e2e2e2;
}
.fido-step_item:first-child::before {
  left: 50%;
  width: 50%;
}
.fido-step_item:last-child::before {
  width: 50%;
}
.fido-step_no {
  position: relative;
  z-index: 1;
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 5px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e2e2;
  color: #b6b6b6;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  font-weight: bold;
}
.fido-step_item.is-active {
  color: #111111;
  font-weight: bold;
}
.fido-step_item.is-active .fido-step_no {
  background: #6eb2ff;
  border-color: #6eb2ff;
  color: #ffffff;
}
.fido-step_item.is-done {
  color: #626262;
}
.fido-step_item.is-done .fido-step_no {
  background: #e2f0ff;
  border-color: #6eb2ff;
  color: #5183bc;
}
.fido-step_item.is-done::before {
  background: #6eb2ff;
}

/*--------------------------------------------
  3. 頁面標題與說明
--------------------------------------------*/
.fido-hero {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}
/* 臉部＋指紋雙圖示並排 */
.fido-hero_ics {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.fido-hero_ics .fido-hero_ic {
  margin-left: 5px;
  margin-right: 5px;
}

.fido-hero_ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #e2f0ff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.fido-hero_ic img {
  width: 36px;
  height: 36px;
}
.fido-hero_title {
  color: #111111;
  font-weight: bold;
}
.fido-hero_sub {
  color: #626262;
  margin-top: 5px;
}

/* 特色說明（3 分鐘完成、免帳密、FIDO 標準） */
.fido-feature {
  width: 100%;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}
.fido-feature li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 20px;
  color: #626262;
}
.fido-feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6eb2ff;
}

/*--------------------------------------------
  4. 服務條款捲動區與同意勾選
--------------------------------------------*/
.fido-terms_box {
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 15px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #f8f8f9;
  font-size: 12px;
  line-height: 20px;
  color: #626262;
}
.fido-terms_box h6 {
  font-size: 14px;
  line-height: 20px;
  color: #111111;
  font-weight: bold;
  margin-bottom: 5px;
}
.fido-terms_box ol {
  padding-left: 18px;
  margin-bottom: 10px;
}
.fido-terms_box ol li {
  margin-bottom: 5px;
}
.fido-terms_box::-webkit-scrollbar {
  width: 6px;
}
.fido-terms_box::-webkit-scrollbar-thumb {
  background: #d3d3d3;
  border-radius: 3px;
}

.fido-agree {
  width: 100%;
  margin: 15px 0;
}
.fido-agree .custom-control-label {
  font-size: 14px;
  line-height: 20px;
  color: #111111;
  cursor: pointer;
}
.fido-agree .custom-control-input:checked ~ .custom-control-label::before {
  background: #6eb2ff;
  border-color: #6eb2ff;
}

/*--------------------------------------------
  5. 綁定 / 辨識中的掃描動畫
--------------------------------------------*/
.fido-scan {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 10px auto 20px;
  border-radius: 50%;
  background: #e2f0ff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  overflow: hidden;
}
.fido-scan img {
  width: 72px;
  height: 72px;
}
/* 掃描線（僅辨識中顯示） */
.fido-scan_line {
  display: none;
  position: absolute;
  left: 15%;
  width: 70%;
  height: 2px;
  background: #6eb2ff;
  -webkit-box-shadow: 0 0 6px #6eb2ff;
          box-shadow: 0 0 6px #6eb2ff;
}
/* 擴散光圈（僅辨識中顯示） */
.fido-scan_ring {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #6eb2ff;
}
.fido-scan.is-scanning .fido-scan_line {
  display: block;
  -webkit-animation: fidoScanLine 1.6s ease-in-out infinite;
          animation: fidoScanLine 1.6s ease-in-out infinite;
}
.fido-scan.is-scanning .fido-scan_ring {
  display: block;
  -webkit-animation: fidoScanRing 1.6s ease-out infinite;
          animation: fidoScanRing 1.6s ease-out infinite;
}
.fido-scan.is-fail {
  background: #ffeced;
}
.fido-scan.is-success {
  background: #e6faee;
}

@-webkit-keyframes fidoScanLine {
  0% {
    top: 25%;
    opacity: 0.2;
  }
  50% {
    top: 75%;
    opacity: 1;
  }
  100% {
    top: 25%;
    opacity: 0.2;
  }
}

@keyframes fidoScanLine {
  0% {
    top: 25%;
    opacity: 0.2;
  }
  50% {
    top: 75%;
    opacity: 1;
  }
  100% {
    top: 25%;
    opacity: 0.2;
  }
}
@-webkit-keyframes fidoScanRing {
  0% {
    -webkit-transform: scale(0.6);
            transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0;
  }
}
@keyframes fidoScanRing {
  0% {
    -webkit-transform: scale(0.6);
            transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0;
  }
}

/*--------------------------------------------
  6. 狀態切換（辨識中 / 成功 / 失敗 / 不支援）
--------------------------------------------*/
.fido-state {
  display: none;
  width: 100%;
  text-align: center;
}
.fido-state.is-show {
  display: block;
}
.fido-state_title {
  color: #111111;
  font-weight: bold;
  margin-bottom: 5px;
}
.fido-state_txt {
  color: #626262;
}
.fido-state_ic {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
}
.fido-state_ic img {
  width: 100%;
  height: 100%;
}

/* 成功 / 失敗 / 未登錄 / 不支援時改以狀態圖示呈現，隱藏掃描圓框 */
[data-fido-current="success"] .fido-scan,
[data-fido-current="fail"] .fido-scan,
[data-fido-current="not-enrolled"] .fido-scan,
[data-fido-current="unsupported"] .fido-scan {
  display: none;
}

/* OTP 重新發送倒數秒數 */
.fido-otp_seconds {
  font-weight: bold;
}

/*--------------------------------------------
  7. 綁定完成後的裝置資訊卡
--------------------------------------------*/
.fido-device {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #f8f8f9;
  padding: 12px 15px;
  margin-bottom: 15px;
}
.fido-device_row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: 12px;
  line-height: 20px;
}
.fido-device_row + .fido-device_row {
  margin-top: 5px;
}
.fido-device_label {
  color: #626262;
  margin-right: 10px;
  white-space: nowrap;
}
.fido-device_value {
  color: #111111;
  text-align: right;
  word-break: break-all;
}

/*--------------------------------------------
  8. 注意事項
--------------------------------------------*/
.fido-note {
  width: 100%;
  padding: 12px 15px;
  border-radius: 3px;
  background: #fff8e6;
  font-size: 12px;
  line-height: 18px;
  color: #626262;
}
.fido-note ul {
  padding-left: 16px;
  margin: 5px 0 0;
}
.fido-note ul li {
  margin-bottom: 3px;
}
.fido-note ul li:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------
  9. 按鈕處理中狀態（讀取動畫）
--------------------------------------------*/
.fido-btn_loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.fido-btn_loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  -webkit-animation: fidoSpin 0.8s linear infinite;
          animation: fidoSpin 0.8s linear infinite;
}

@-webkit-keyframes fidoSpin {
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes fidoSpin {
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

/*--------------------------------------------
  10. 會員中心／帳戶安全：已綁定裝置管理
--------------------------------------------*/
.fido-manage {
  width: 100%;
}

/* 單一裝置列 */
.fido-manage_item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
}
.fido-manage_item.is-removed {
  display: none;
}

.fido-manage_info {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  min-width: 0;
}
.fido-manage_name {
  font-size: 14px;
  line-height: 20px;
  color: #111111;
  font-weight: bold;
}
.fido-manage_meta {
  font-size: 12px;
  line-height: 18px;
  color: #626262;
  margin-top: 2px;
}

/* 本裝置標記 */
.fido-manage_tag {
  display: inline-block;
  margin-left: 5px;
  padding: 0 8px;
  border-radius: 9px;
  background: #e2f0ff;
  color: #5183bc;
  font-size: 12px;
  line-height: 18px;
  font-weight: normal;
}

/* 解除綁定 */
.fido-manage_del {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  margin-left: 10px;
  padding: 3px 12px;
  border: 1px solid #ff6e76;
  border-radius: 3px;
  background: #ffffff;
  color: #ff6e76;
  font-size: 12px;
  line-height: 18px;
}
.fido-manage_del:hover {
  background: #ff6e76;
  color: #ffffff;
  text-decoration: none;
}
.fido-manage_del:focus {
  background: #e9555d;
  color: #ffffff;
  text-decoration: none;
  outline: none;
}

/* 綁定此裝置 */
.fido-manage_add {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 15px;
  border: 1px solid #6eb2ff;
  border-radius: 3px;
  background: #ffffff;
  color: #6eb2ff;
  font-size: 14px;
  line-height: 22px;
}
.fido-manage_add:hover {
  background: #6eb2ff;
  color: #ffffff;
  text-decoration: none;
}
.fido-manage_add:focus {
  background: #65a3e8;
  color: #ffffff;
  text-decoration: none;
  outline: none;
}
.fido-manage_add .fido-manage_add-ic {
  font-size: 18px;
  line-height: 18px;
  margin-right: 5px;
}
/* 本裝置已於當前網域綁定：文字改為「此裝置已完成綁定」且不可點（規格 2.6）*/
.fido-manage_add.is-disabled {
  border-color: #e2e2e2;
  background: #f8f8f9;
  color: #b6b6b6;
  pointer-events: none;
  cursor: not-allowed;
}

/* 尚未綁定任何裝置 */
.fido-manage_empty {
  padding: 20px 15px;
  margin-bottom: 10px;
  border: 1px dashed #b6b6b6;
  border-radius: 3px;
  background: #f8f8f9;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: #626262;
}

/* 解除完成提示 */
.fido-manage_done {
  display: none;
  padding: 8px 15px;
  margin-bottom: 10px;
  border-radius: 3px;
  background: #e6faee;
  color: #1f9c58;
  font-size: 12px;
  line-height: 18px;
}
.fido-manage_done.is-show {
  display: block;
}

@media (max-width: 575px) {
  .fido-manage_item {
    padding: 10px;
  }
  .fido-manage_info {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 100%;
            flex: 1 1 100%;
  }
  .fido-manage_del {
    margin-left: 0;
    margin-top: 8px;
  }
}

/*--------------------------------------------
  11. 彈窗微調（沿用 bootstrap modal）
--------------------------------------------*/
.fido-modal .modal-content {
  border: none;
  border-radius: 5px;
}
.fido-modal .modal-body {
  padding: 25px 20px;
}
/* 按鈕群組：辨識彈窗與綁定頁（#fidoBindPanel）共用，故不限縮於 .fido-modal 之下 */
.fido-modal_btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 20px;
}
.fido-modal_btns .member-l_btn + .member-l_btn {
  margin-left: 10px;
}

@media (max-width: 767px) {
  .fido-modal_btns {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .fido-modal_btns .member-l_btn + .member-l_btn {
    margin-left: 0;
    margin-top: 10px;
  }
}
