/* EC Login Page Styles (独立登录页样式) */
 
.ec-login-wrapper {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 36px 32px 32px 32px;
  font-family: inherit;
}
.regs-tabs .ec-login-wrapper{
  background: unset;
  margin: 0;
  border-radius: 0;
  box-shadow: unset;
  padding: 0;
  position: unset;
}
.ec-login-header {
  position: relative;
  margin-bottom: 24px;
}
.ec-login-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
}
.ec-login-qr {
  position: absolute;
  top: -52px;
  right: 0;
  width: 74px;
  height: 74px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ec-login-qr-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  overflow: hidden;
  z-index: 2;
  background: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.ec-login-computer-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  overflow: hidden;
  z-index: 2;
  background: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  cursor: pointer;
}
.ec-login-qr-tip {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 3;
  background: #222;
  color: #fff;
  font-size: 13px;
  border-radius: 6px 6px 0 0;
  padding: 4px 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ec-form-group {
  margin-bottom: 18px;
  position: relative;
}
.ec-form-label {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #222;
  margin-bottom: 0;
  text-align: left;
}
.ec-form-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  line-height: 18px;
  color: #222;
  background: #fff;
  transition: border 0.2s;
  margin-bottom: 5px;
}
.ec-form-input:focus {
  border-color: #d64541;
}
.ec-password-input {
  position: relative;
  display: flex;
  align-items: center;
}
.ec-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 18px;
  padding: 0;
}
input:-webkit-autofill {
  -webkit-text-fill-color: #000 !important; /* text color */
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important; /* background color */
  box-shadow: 0 0 0px 1000px #fff inset !important;
  transition: background-color 5000s ease-in-out 0s; /* prevent yellow flash */
}

/* 验证码输入框样式 - 与注册页保持一致 */
.ec-verification-input {
  position: relative;
  display: flex;
  align-items: center;
}

.ec-verification-input .ec-form-input {
  width: 100%;
  padding-left: 210px;
}

.ec-send-code-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #003AF5;
    border: none;
    padding: 4px 8px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: underline;
    min-width: auto;
    height: auto;
    line-height: 1.4;
    z-index: 2;
    text-align: left;
}

/* .ec-send-code-btn:hover {
  color: #059669;
  text-decoration: underline;
} */

.ec-send-code-btn:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
}
.ec-eye-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}
.ec-login-links {
  display: flex;
  flex-direction: column-reverse;
  font-size: 16px;
  font-weight: 400;
  gap:24px;
  align-items: center;
  margin-bottom: 24px;
  margin-top: 30px;
}
.ec-login-register {
  color: #222;
}
.ec-login-register a {
  color: #003AF5;
   text-decoration: none;
}
.ec-login-otp {
  color: #003AF5;
  text-decoration: none;
}
.ec-login-password {
  color: #003AF5;
  text-decoration: none;
}
.ec-login-btn {
    width: 100%;
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.ec-login-btn:hover {
  background: #b8322f;
}
.ec-login-forgot {
  color: #003AF5;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  display: block;
  margin-bottom: 24px;
  text-align: center;
  margin-top: 10px;
}
.ec-login-policy {
  font-size: 16px;
  color: #222;
  text-align: center;
  font-weight: 400;
  line-height: 20px;
}
.ec-login-policy-link {
  color: #003AF5;
  text-decoration: none;
  font-weight: 400;
}

.regs-tabs .ec-login-register{
  display: none;
}
/* 错误状态样式 - 完全参考注册页 */


/* 错误信息样式 */
.ec-form-error {
    color: #eb0b00;
    font-size: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    text-align: left;
    min-height: 14px;
}

/* .ec-form-error:not(:empty)::before {
    content: '⚠ ';
    margin-right: 4px;
} */


/* 错误提示弹窗样式 - 与注册页完全一致 */
.ec-error-popup {
    position: absolute;
    top: 50%;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    text-align: left;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    width: 420px;
    text-align: center;
    flex-direction: column;
    transform: translate(0%, -50%);
}

.ec-error-popup-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #eb0b00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ec-error-popup-icon::before {
    content: '×';
    color: #E33A32;
    font-size: 25px;
    font-weight: bold;
    line-height: 1;
}

.ec-error-popup-content {
    flex: 1;
}

.ec-error-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.ec-error-popup-message {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

/* 成功提示弹窗样式 - 与注册页完全一致 */
.ec-success-popup {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    left:0;
    background: #d4edda;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 25px 20px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    flex-direction: column;
}

.ec-success-popup-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-success-popup-icon::before {
    content: '✓';
    color: #28a745;
    font-size: 24px;
    line-height: 1;
}

.ec-success-popup-message {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.ec-success-popup.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* 信息提示弹窗样式 */
.ec-info-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    max-width: 420px;
    min-width: 400px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
}

.ec-info-popup-icon {
    width: 20px;
    height: 20px;
    background: #2196f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-info-popup-icon::before {
    content: 'ℹ';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.ec-info-popup-message {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}
#login_verification_code{
  text-align: right;
}
/* 弹窗动画 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.ec-error-popup.closing,
.ec-success-popup.closing,
.ec-info-popup.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* 移动端弹窗样式 */
@media (max-width: 768px) {
    .ec-error-popup {
        width: auto;
        left: 0;
    }
    
    .ec-error-popup-title {
        font-size: 15px;
    }
    
    .ec-error-popup-message {
        font-size: 13px;
    }
    
    .ec-success-popup-message {
        font-size: 13px;
    }
    
    .ec-info-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 12px 16px;
    }
    
    .ec-info-popup-message {
        font-size: 13px;
    }
    
    /* 移动端验证码按钮样式 */
   
    
    .ec-send-code-btn {
        font-size: 11px;
        padding: 4px 6px;
    }
}

/* 扫码登录模式样式 */
.ec-qr-mode {
  text-align: center;
}
.login-title{
  margin-bottom: 24px;
}
.regs-tabs .login-title{
    display: none;
}
.ec-qr-title {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  margin-bottom: 12px;
}

.ec-qr-container {
  margin-bottom: 32px;
}

.ec-qr-code {
  display: inline-block;
  margin-bottom: 10px;
  position: relative; /* 添加相对定位，让绝对定位的子元素能够正确定位 */
  /* 限制二维码容器的最大尺寸，防止覆盖层过大 */
  max-width: 200px;
  max-height: 200px;
}

.ec-qr-code.expired #qrcode {
  filter: grayscale(100%);
  opacity: 0.6;
}

/* 确保二维码元素有正确的尺寸 */
.ec-qr-code #qrcode {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

/* 确保二维码容器内的所有内容都居中 */
.ec-qr-code {
  text-align: center;
}

.ec-qr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 4;
  /* 确保覆盖层只在二维码容器内显示 */
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.ec-qr-expired-text {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
  text-align: center;
}

.ec-qr-overlay .ec-qr-refresh-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ec-qr-overlay .ec-qr-refresh-btn:hover {
  background: #218838;
}

/* 已扫描状态样式 */
.ec-qr-scanned-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
  /* 确保覆盖层只在二维码容器内显示 */
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.ec-qr-scanned-icon {
  width: 60px;
  height: 60px;
  background: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ec-qr-scanned-icon svg {
  color: white;
  stroke-width: 3;
}

.ec-qr-scanned-text {
  color: #000;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.ec-qr-account-link {
  font-size: 16px;
  font-weight: 500;
  color: #d64541;
  text-decoration: none;
  cursor: pointer;
}

.ec-qr-account-link:hover {
  text-decoration: underline;
}

.ec-qr-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ec-qr-refresh-btn {
  background: #d64541;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ec-qr-refresh-btn:hover {
  background: #c13a36;
} 
@media screen and (max-width:1024px){
  .ec-login-wrapper {
    margin: 0 auto;
  }
}