/* 登录弹窗样式 */
.login-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.login-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.login-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  
  &:hover {
    color: #f26522;
  }
}

.login_font {
  .title {
    text-align: center;
    margin-bottom: 30px;
    
    .cn {
      font-size: 24px;
      font-weight: 600;
      color: #333;
      margin-bottom: 8px;
    }
    
    .en {
      font-size: 12px;
      color: #999;
      letter-spacing: 2px;
    }
  }
  
  .input_wrap {
    margin-bottom: 30px;
    
    .mobile {
      margin-bottom: 20px;
      
      .phone {
        width: 100%;
        height: 48px;
        padding: 0 15px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        font-size: 14px;
        color: #333;
        box-sizing: border-box;
        transition: border-color 0.3s ease;
        
        &:focus {
          outline: none;
          border-color: #f26522;
        }
        
        &::placeholder {
          color: #999;
        }
      }
    }
  }
  
  .submit {
    position: relative;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #f26522 0%, #ff8b27 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
    
    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(242, 101, 34, 0.4);
    }
    
    &:active {
      transform: translateY(0);
    }
    
    .submit-arrow {
      font-size: 20px;
      margin-right: 8px;
      display: inline-block;
      transition: transform 0.3s ease;
    }
    
    &:hover .submit-arrow {
      transform: translateX(3px);
    }
    
    span:not(.submit-arrow) {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
    }
  }

  .login-agree-text {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.6;

    a {
      color: #f26522;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

/* 错误提示弹窗样式 */
.error-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  justify-content: center;
  align-items: center;
}

.error-modal-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
  text-align: center;
  
  .error-tip {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
  }
  
  .error-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
  }
  
  .submit-ok {
    width: 100%;
    height: 44px;
    line-height: 44px;
    background: #f26522;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    
    &:hover {
      background: #e55a1a;
    }
  }
}

