/* Reset and basic settings */
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Home Back Button */
.home-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.home-back-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.home-back-btn i {
  font-size: 16px;
  color: #d4af7a;
}

.home-back-btn span {
  color: #333;
}

/* 背景视频样式 */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
}

body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  background: #ededed;
}

input,
button {
  border: none;
  outline: none;
  background: none;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.error-message {
  color: red;
  text-align: center;
  margin-top: 10px;
}

/* 
  Main container: 设置为 1000px x 600px，并通过负 margin 居中 
  margin-top: -300px (高度一半)， margin-left: -500px (宽度一半)
*/
.dowebok {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1000px;
  height: 600px;             
  margin: -300px 0 0 -500px;   
  background: rgb(255, 255, 255);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;

  transition: height 0.6s ease-in-out, margin 0.6s ease-in-out;
}
.dowebok.s--signup {
  height: 800px;               
  margin: -400px 0 0 -500px;  
}


/* .dowebok {
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1000px;
    height: 600px;
    margin: -300px 0 0 -500px;
    background: #fff;
} */

/* 
   表单区域 .form：这里宽度设置为 700px，高度 100% 
*/
.form {
  position: relative;
  width: 700px;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  padding: 0 30px 0; /* 上下无固定 padding，左右仅留 30px */
}

/* 根据需要区分登录、注册顶部留白 */
.form.sign-in {
  padding-top: 12%;
}
.form.sign-up {
  padding-top: 5%;
}

.sign-up-top {
  height: 5%;
  text-align: center;
  position: relative;
}

.info-icon {
  font-size: 16px;
  color: #d4af7a;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin-left: 8px;
  vertical-align: middle;
}

.info-icon:hover {
  color: #c9a06e;
  transform: scale(1.1);
}

.info-tooltip {
  position: absolute;
  top: 100%;
  right: -20px;
  width: 350px;
  background: white;
  border: 1px solid #d4af7a;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  text-align: left;
}

.info-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.info-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.info-tooltip::after {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #d4af7a;
}

.sign-up-mid {
  height: 5%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 3rem;
}

.sign-up-bottom {
  height: 85%;
  overflow-y: auto;
  padding: 10px;
}

/* Center form contents */
.form.sign-in form,
.form.sign-up form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 
  Sub container (右侧容器)
  left 与表单宽度对应 => 700px
  width 与外层容器一致 => 1000px
*/

.form.ticket {
    position: fixed; /* 或 fixed，如果要全屏覆盖 */
    top: 0;
    left: 0;
    width: 100%; /* 你想覆盖 sign-up 同样大小 */
    height: 100%;
    z-index: 9999;
    display: none;
    background: #fff;
    /* 其他需要的样式 */
  }
/* .ticket-top,
.ticket-mid,
.ticket-bottom {
  padding: 20px;
} */

.ticket-top
{
  height: 10%;
  padding: 20px
}

.ticket-mid
{
  height: 75%;
  overflow-y: auto;
}

.ticket-bottom
{
  height: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 如果需要动画切换，可以添加过渡效果 */
.form.ticket.fade-in {
  animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sub-cont {
  overflow: hidden;
  position: absolute;
  left: 700px;
  top: 0;
  width: 1000px;
  height: 100%;
  /* 下文 .img 宽度是 300px，这里可设置 padding-left: 300px */
  padding-left: 300px;
  background: #fff;
  transition: transform 0.6s ease-in-out;
}
/* 
   切换时向左移动 .sub-cont => translate3d(-700px, 0, 0)
   因为表单宽度是 700px
*/
.dowebok.s--signup .sub-cont {
  transform: translate3d(-700px, 0, 0);
}

/* Sign-in transition */
.sign-in {
  transition-timing-function: ease-out;
}
.dowebok.s--signup .sign-in {
  transition-timing-function: ease-in-out;
  transition-duration: 0.6s;
  /* 登录表单向右平移 700px */
  transform: translate3d(700px, 0, 0);
}

/* 
   Sign-up transition
   让注册表单初始位置在 -1000px (父容器总宽度)
*/
.sign-up {
  border-radius: 20px;
  transform: translate3d(-1000px, 0, 0);
}
.dowebok.s--signup .sign-up {
  transform: translate3d(0, 0, 0);
}

/* 
  左侧图片区域 .img：宽度 300px，高度 100%
*/
.img {
  overflow: hidden;
  z-index: 2;
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 100%;
  padding-top: 360px;
}

/* 
  .img:before 覆盖整容器 => width: 1000px
*/
.img:before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 1000px;
  height: 100%;
      background-image: url("/assets/images/bg5.jpg");
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease-in-out;
}
.img:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
/* 
   切换时移动 .img:before => translate3d(700px, 0, 0)
   与上面 .sub-cont 移动量一致 
*/
.dowebok.s--signup .img:before {
  transform: translate3d(700px, 0, 0);
}

/* Toggle text and buttons in the left image area */
.img__text {
  z-index: 2;
  position: absolute;
  left: 0;
  top: 50px;
  width: 100%;
  padding: 0 20px;
  text-align: center;
  color: #fff;
  transition: transform 0.6s ease-in-out;
}
.img__text h2 {
  /* margin-bottom: 10px; */
  margin-top: 50px;
  font-weight: normal;
}
.img__text p {
  font-size: 14px;
  line-height: 1.5;
}
/* 
   这里维持原先 translateX(520px) 
   不必严格等比，只要两边对应即可
*/
.dowebok.s--signup .img__text.m--up {
  transform: translateX(520px);
}
.img__text.m--in {
  transform: translateX(-520px);
}
.dowebok.s--signup .img__text.m--in {
  transform: translateX(0);
}

.img__btn {
  overflow: hidden;
  z-index: 2;
  position: relative;
  width: 100px;
  height: 36px;
  margin: 0 auto;
  background: transparent;
  color: #fff;
  text-transform: uppercase;
  font-size: 15px;
  cursor: pointer;
}
.img__btn:after {
  content: "";
  z-index: 2;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 30px;
}
.img__btn span {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
}
.img__btn span.m--in {
  transform: translateY(-72px);
}
.dowebok.s--signup .img__btn span.m--in {
  transform: translateY(0);
}
.dowebok.s--signup .img__btn span.m--up {
  transform: translateY(72px);
}

/* Titles */
h2 {
  width: 100%;
  font-size: 26px;
  text-align: center;
  /* margin-bottom: 10px; */
}

/* Labels and inputs */
label {
  width: 80%;
  margin-top: 10px;
  text-align: center;
}
label span {
  font-size: 12px;
  color: #151515;
  text-transform: uppercase;
}
input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding-bottom: 5px;
  font-size: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  text-align: center;
}

/* Forgot password link */
.forgot-pass {
  margin-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #0000ff;
}
.forgot-pass a {
  color: #0000ff;
}

/* Buttons */
button.submit {
  display: block;
  width: 260px;
  height: 36px;
  border-radius: 30px;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  background: #d4af7a;
  margin: 25px auto;
  cursor: pointer;
  align-items: center;
}
button.submit:hover {
  background: #c9a06e;
}


button.cancel {
  display: block;
  width: 260px;
  height: 36px;
  border-radius: 30px;
  color: #000000;
  font-size: 15px;
  text-transform: uppercase;
  background: #6f6f6f;
  margin: 25px 25px 25px 25px;
  cursor: pointer;
  align-items: center;
}
button.cancel:hover {
  background: #aaaaaa;
}

/* Registration two-column layout */
.register-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.register-col {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

/* Password eye icon */
.password-wrapper {
  position: relative;
  width: 100%;
}
.password-wrapper i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

/* Verification code container */
.verification-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.verification-container input {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-size: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  text-align: center;
  box-sizing: border-box;
}

.verification-container label {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
}

button.verification-but {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  width: 100px;
  height: 36px;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  padding: 0 10px;
  text-transform: uppercase;
  background: #d4af7a;
  cursor: pointer;
  box-sizing: border-box;
 
  /* margin: 5px 0; */
  margin-top: 15px;
}

/* Password criteria & strength bar */
#passwordCriteria {
  width: 80%;
  margin: 10px auto;
  text-align: left;
  font-size: 0.9em;
}
#passwordCriteria p {
  margin: 4px 0;
}
.valid {
  color: green;
}
.invalid {
  color: red;
}
.valid:before {
  content: "✔ ";
  color: green;
}
.invalid:before {
  content: "✖ ";
  color: red;
}

#password-strength-container {
  width: 80%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin: 10px auto 15px auto;
  overflow: hidden;
}

#password-strength {
  height: 100%;
  width: 0;
  background-color: red;
  transition: width 0.3s;
}

#stateSelect {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding-bottom: 5px;
  font-size: 16px;
  /* 与其他输入相同：底部描边、居中对齐、透明背景等 */
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  text-align: center;
  background: transparent;
  outline: none;
  color: #333; /* 如果想与其他颜色一致，可改为 #000 或 #fff */
}

/* 使 option 与下拉背景、文字保持良好对比 */
#stateSelect option {
  color: #333;
  background: #fff;
}


.form-field {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  position: relative;
}


.form-field:hover {
  border-color: #d4af7a;
  box-shadow: 0 4px 10px rgba(212, 175, 122, 0.2);
}

.form-field:focus-within {
  border-color: #a67c52;
  box-shadow: 0 6px 15px rgba(166, 124, 82, 0.3);
}

.form-field.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}


.form-field .top-section {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}
/* 
.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  display: block;
  margin-bottom: 6px;
} */


.form-field .middle-section {
  margin-bottom: 10px;
}


.field-description {
  font-size: 13px;
  color: #777;
  margin-top: 5px;
}

.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #d4af7a;
    box-shadow: 0 0 8px rgba(212, 175, 122, 0.4);
    outline: none;
}

.form-field input[type="checkbox"],
.form-field input[type="radio"] {
    accent-color: #6f6f6f;
    transform: scale(1.2);
    margin-right: 5px;
}

/* 复选框和单选框的标签 */
.form-field input[type="checkbox"] + label,
.form-field input[type="radio"] + label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.option-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.option-wrapper label {
    width: 90%;
}


.add-more-btn,
.submit-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    margin-left: 10px;
}

.add-more-btn:hover,
.submit-button:hover {
    background-color: #45a049;
}


.files-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9em;
  font-family: sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.files-table th,
.files-table td {
  padding: 5px 5px;
  text-align: left;
}

.files-table th {
  background-color: #009879;
  color: #ffffff;
  font-weight: bold;
}

.files-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.files-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

/* .files-table tbody tr:last-of-type {
  border-bottom: 2px solid #009879;
} */

.file-preview-cell {
  width: 20%;
  height: 100%;
}

.file-download-cell {
  width: 5%;
}

.file-tag-cell {
  width: 20%;
}

.file-description-cell {
  width: 40%;
}

.file-action-cell {
  width: 5%;
}

.file-preview-img {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  /* border-radius: 8px; */
}

.tag-dropdown,
.file-description,
.delete-button {
  height: 40px; /* 统一高度 */
  padding: 5px;
  box-sizing: border-box;
}

.tag-dropdown {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.file-description {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.delete-button {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

.delete-button:hover {
  background-color: #cc0000;
}
.rights {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-size: 14px; color: #aaa;
}
.MFA_title {
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
.MFA_subtitle {
  font-size: 0.9em;      
  color: #0000009f;        
  width: 100%;               
  margin-top: 20px;
  margin-bottom: 6%;
  text-align: center;       
  line-height: 1.4;         
}
.mfaCodeInput {
  width: 60%;
  align-items: center;
}

#mfaCodeContainer {
  display: none;
  text-align: center;
  margin: 8px auto 0 auto;
  max-width: 460px;
}

/* ============ MFA 第二步验证面板 ============ */
.mfa-panel {
  padding: 4px 8px 0 8px;
}

.mfa-panel-title {
  font-size: 1.25em;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  text-align: center;
  letter-spacing: 0.2px;
}

/* -- 方法切换 Tab -- */
.mfa-method-tabs {
  display: flex;
  width: 320px;
  max-width: 100%;
  margin: 0 auto 16px auto;
  background: #f3ebde;
  border: 1px solid rgba(212, 175, 122, 0.25);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  box-sizing: border-box;
}

.mfa-method-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #7a6148;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.mfa-method-tab i {
  font-size: 13px;
}

.mfa-method-tab:hover:not(.active):not(:disabled) {
  color: #5c4630;
  background: rgba(212, 175, 122, 0.14);
}

.mfa-method-tab.active {
  background: #d4af7a;
  color: #fff;
  box-shadow: 0 2px 6px rgba(212, 175, 122, 0.4);
}

.mfa-method-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* -- 描述文案 -- */
.mfa-panel-desc {
  width: 90%;
  max-width: 420px;
  margin: 0 auto 18px auto;
  font-size: 0.88em;
  line-height: 1.5;
  color: #666;
  text-align: center;
}

.mfa-panel-desc a {
  color: #a67c52;
  text-decoration: none;
}

.mfa-panel-desc a:hover {
  text-decoration: underline;
}

/* -- Email 发送按钮与状态 -- */
.mfa-email-send-row {
  margin: 0 auto 18px auto;
  text-align: center;
}

.mfa-send-btn {
  display: inline-block;
  min-width: 200px;
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: #d4af7a;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(212, 175, 122, 0.3);
}

.mfa-send-btn:hover:not(:disabled) {
  background: #c9a06e;
  box-shadow: 0 3px 10px rgba(212, 175, 122, 0.4);
}

.mfa-send-btn:disabled {
  background: #cfcfcf;
  cursor: not-allowed;
  box-shadow: none;
}

.mfa-email-status {
  font-size: 12px;
  color: #4a7a4a;
  margin: 8px auto 0 auto;
  min-height: 16px;
  text-align: center;
  line-height: 1.4;
}

.mfa-email-status.info {
  color: #4a7a4a;
}

.mfa-email-status.warning {
  color: #b07a1f;
}

/* -- 六位验证码输入框 -- */
.mfa-code-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px auto;
  max-width: 360px;
}

.mfa-code-box {
  width: 42px;
  height: 50px;
  padding: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #333;
  background: #fff;
  border: 1.5px solid #dcdcdc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  caret-color: #d4af7a;
}

.mfa-code-box:focus {
  border-color: #d4af7a;
  box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.18);
  background: #fff;
}

.mfa-code-box.filled {
  border-color: #d4af7a;
  color: #a67c52;
}

.mfa-code-box.error {
  border-color: #dc3545;
  animation: mfaBoxShake 0.4s ease-in-out;
}

@keyframes mfaBoxShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* -- Verify & Login 按钮 -- */
.mfa-verify-btn {
  display: block;
  width: 260px;
  max-width: 80%;
  height: 40px;
  margin: 4px auto 8px auto;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: #d4af7a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 10px rgba(212, 175, 122, 0.35);
}

.mfa-verify-btn:hover:not(:disabled) {
  background: #c9a06e;
  box-shadow: 0 4px 14px rgba(212, 175, 122, 0.45);
}

.mfa-verify-btn:disabled {
  background: #d4af7a;
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.mfa-panel-error {
  min-height: 18px;
  margin: 6px auto 0 auto;
  color: #dc3545;
  font-size: 13px;
  text-align: center;
}

/* -- 小屏适配 -- */
@media (max-width: 480px) {
  .mfa-code-box {
    width: 38px;
    height: 46px;
    font-size: 20px;
  }

  .mfa-method-tabs {
    width: 280px;
  }

  .mfa-method-tab {
    font-size: 12px;
  }
}

.trusted-device-pending {
  width: 100%;
  max-width: 680px;
  margin: 24px auto 0;
  padding: 16px;
  border: 1px solid rgba(212, 175, 122, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.trusted-device-title {
  margin-bottom: 10px;
  font-size: 1.35em;
  color: #333;
}

.trusted-device-description {
  margin-bottom: 10px;
  color: #555;
  line-height: 1.45;
  font-size: 0.95em;
}

.trusted-device-name-step-hint {
  font-size: 12px;
  color: #777;
  text-align: left;
  margin-bottom: 4px;
}

#trustedDeviceNameStepContainer {
  display: none;
  text-align: center;
  margin: 38px auto 20px auto;
  max-width: 800px;
}

.trusted-device-step-title {
  font-size: 1.45em;
  margin-bottom: 14px;
}

.trusted-device-step-section-title {
  margin: 4px 0 6px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #555;
  text-transform: uppercase;
}

#trustedDeviceLogoOptions {
  margin-top: 16px;
}

.trusted-device-step-input {
  width: 40%;
  margin: 10px auto;
  text-align: center;
}

.trusted-device-logo-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 60%;
  margin: 14px auto 10px auto;
}

.trusted-device-logo-option {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  background: #fff;
  padding: 10px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #444;
}

.trusted-device-logo-option i {
  font-size: 20px;
  color: #8a6a3f;
}

.trusted-device-logo-option span {
  font-size: 12px;
  font-weight: 600;
}

.trusted-device-logo-option:hover {
  border-color: rgba(212, 175, 122, 0.8);
  background: rgba(212, 175, 122, 0.08);
  transform: translateY(-1px);
}

.trusted-device-logo-option.selected {
  border-color: #d4af7a;
  background: rgba(212, 175, 122, 0.16);
  box-shadow: 0 0 0 2px rgba(212, 175, 122, 0.15);
}

.trusted-device-device-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(212, 175, 122, 0.14);
  color: #8a6a3f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trusted-device-main-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.trusted-device-step-hint {
  font-size: 0.9em;
  color: #0000009f;
  margin: 6px auto 14px auto;
  text-align: center;
  width: 80%;
}

.trusted-device-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
}

.trusted-device-item {
  display: block;
  width: 100%;
  margin-top: 0;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.trusted-device-item:last-child {
  border-bottom: none;
}

.trusted-device-item:hover {
  background: rgba(212, 175, 122, 0.12);
}

.trusted-device-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: flex-start;
  gap: 10px;
}

.trusted-device-radio {
  justify-self: center;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  display: inline-block;
  padding: 0;
  border: none;
  background: transparent;
  border-bottom: none;
  text-align: left;
  accent-color: #d4af7a;
}

.trusted-device-main {
  text-align: left;
  flex: 1;
}

.trusted-device-name {
  font-size: 0.95em;
  font-weight: 600;
  color: #222;
  margin-bottom: 0;
}

.trusted-device-meta {
  font-size: 0.82em;
  color: #666;
  line-height: 1.35;
}

.trusted-device-empty {
  padding: 18px 14px;
  text-align: center;
  color: #666;
  font-size: 0.9em;
}

.trusted-device-error {
  min-height: 20px;
  margin-top: 8px;
}

.trusted-device-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .trusted-device-logo-options {
    width: 82%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trusted-device-step-input {
    width: 70%;
  }
}

.trusted-device-secondary-btn {
  width: 220px !important;
  margin: 0 !important;
  background: #6f6f6f !important;
}

.trusted-device-secondary-btn:hover {
  background: #828282 !important;
}

.registerForm-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
}

#verification-hint {
  text-align: center;
  width: 100%;
  margin-bottom: 15px;
}

.registerForm-top{
  height: auto;
}

/* Toggle Switch Styles - Modern Segmented Control Design */
.user-type-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.account-type-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.toggle-switch {
  position: relative;
  display: flex;
  width: 220px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(212, 175, 122, 0.3);
  border-radius: 22px;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toggle-switch:hover {
  border-color: rgba(212, 175, 122, 0.6);
  box-shadow: 0 6px 20px rgba(212, 175, 122, 0.3);
  transform: translateY(-2px);
}

.toggle-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  user-select: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  height: 100%;
  cursor: pointer;
  gap: 8px;
}

.toggle-label i {
  font-size: 16px;
  transition: all 0.3s ease;
}

.toggle-label.active {
  color: white;
  font-weight: 600;
}

.toggle-label.active i {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #d4af7a 0%, #c9a06e 100%);
  border-radius: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(100%);
}

/* Add subtle hover effects for individual labels */
.toggle-label:hover:not(.active) {
  color: #888;
  background: rgba(212, 175, 122, 0.1);
}

.toggle-label:hover:not(.active) i {
  transform: scale(1.05);
}

/* Pulse animation for active state */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.toggle-label.active i {
  animation: pulse 2s infinite;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .toggle-switch {
    width: 200px;
    height: 40px;
  }
  
  .toggle-label {
    font-size: 13px;
    gap: 6px;
  }
  
  .toggle-label i {
    font-size: 14px;
  }
}

/* Additional visual polish */
.toggle-switch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}

/* Policy Popup Styles */
.policy-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.policy-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.policy-popup {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.policy-popup-overlay.show .policy-popup {
  transform: scale(1);
}

.policy-popup-header {
  padding: 20px 25px 15px 25px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  border-radius: 15px 15px 0 0;
}

.policy-popup-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
  text-align: center;
}

.policy-popup-content {
  flex: 1;
  padding: 20px 25px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  max-height: 400px;
}

.policy-popup-footer {
  padding: 15px 25px 20px 25px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
  gap: 15px;
  background: #f8f9fa;
  border-radius: 0 0 15px 15px;
}

.policy-popup-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.policy-popup-btn.accept {
  background: #d4af7a;
  color: white;
}

.policy-popup-btn.accept:hover {
  background: #c9a06e;
}

.policy-popup-btn.decline {
  background: #e0e0e0;
  color: #666;
}

.policy-popup-btn.decline:hover {
  background: #d0d0d0;
}

.policy-popup-btn:disabled {
  background: #e0e0e0 !important;
  color: #999 !important;
  cursor: not-allowed;
}

/* Policy Link Styles */
.policy-link-container {
  width: 80%;
  text-align: center;
  margin: 15px auto 10px auto;
  font-size: 13px;
}

.policy-link {
  color: #d4af7a;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.policy-link:hover {
  color: #c9a06e;
}

/* Disabled state for buttons when policy not accepted */
.disabled-until-policy {
  opacity: 0.5;
  pointer-events: none;
  background: #e0e0e0 !important;
}

/* Responsive design for home back button */
@media (max-width: 768px) {
  .home-back-btn {
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .home-back-btn i {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .home-back-btn {
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .home-back-btn i {
    font-size: 12px;
  }
  
  .home-back-btn span {
    display: none;
  }
}

/* Email verification preference link */
.email-verification-link {
  color: #0073bb;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

.email-verification-link:hover {
  color: #005a94;
  text-decoration: none;
}

/* Verification Code Input Styles */
.verification-code-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  max-width: 300px;
}

.code-input {
  width: 40px;
  height: 45px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
  outline: none;
}

.code-input:focus {
  border-color: #0073bb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 115, 187, 0.1);
  transform: scale(1.05);
}

.code-input.filled {
  border-color: #0073bb;
  background: #fff;
  color: #0073bb;
}

.code-input.error {
  border-color: #dc3545;
  background: #fff;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Error message styles for email setup steps */
#emailSetupStep2Error,
#emailSetupStep3Error {
  color: #dc3545;
  font-size: 0.85em;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  display: none;
}

#emailSetupStep2Error.show,
#emailSetupStep3Error.show {
  display: block;
}

/* 放大emailSetupContainer内所有字体 */
#emailSetupContainer h3 {
  font-size: 26px !important;
}
#emailSetupContainer p, #emailSetupContainer label, #emailSetupContainer span, #emailSetupContainer a {
  font-size: 18px !important;
}
#emailSetupContainer .code-input {
  font-size: 28px !important;
  width: 54px !important;
  height: 54px !important;
}
#emailSetupContainer .error-message {
  font-size: 16px !important;
}
#emailSetupContainer button#emailVerificationSubmit {
  font-size: 18px !important;
  padding: 16px 32px !important;
  border-radius: 8px !important;
}
#emailSetupContainer button#emailSetupVerifyBtn {
  background: rgb(212, 175, 122) !important;
  color: #fff !important;
  font-size: 22px !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  border: 1px solid #ddd !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
#emailSetupContainer button#emailSetupVerifyBtn:hover {
  background: rgba(212,175,122,0.85) !important;
}

